use of org.eclipse.draw2d.Clickable in project tdi-studio-se by Talend.
the class TalendEntryEditPart method createFigure.
@Override
public IFigure createFigure() {
Field customLabelField;
try {
talendCustomLabel = new DetailedLabelFigure();
//$NON-NLS-1$
customLabelField = ToolEntryEditPart.class.getDeclaredField("customLabel");
customLabelField.setAccessible(true);
customLabelField.set(this, talendCustomLabel);
} catch (Exception e) {
CommonExceptionHandler.process(e);
}
Clickable button = new ToolEntryToggle(talendCustomLabel);
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
getPaletteViewer().setActiveTool(getToolEntry());
}
});
return button;
}
Aggregations