use of com.archimatetool.editor.ui.components.ColorChooser in project archi by archimatetool.
the class FontColorSection method createColorControl.
private void createColorControl(Composite parent) {
createLabel(parent, Messages.FontColorSection_0, ITabbedLayoutConstants.STANDARD_LABEL_WIDTH, SWT.CENTER);
fColorChooser = new ColorChooser(parent);
fColorChooser.setDoShowPreferencesMenuItem(false);
getWidgetFactory().adapt(fColorChooser.getControl(), true, true);
fColorChooser.addListener(colorListener);
}
use of com.archimatetool.editor.ui.components.ColorChooser in project archi by archimatetool.
the class FillColorSection method createColorControl.
private void createColorControl(Composite parent) {
createLabel(parent, Messages.FillColorSection_0, ITabbedLayoutConstants.STANDARD_LABEL_WIDTH, SWT.CENTER);
fColorChooser = new ColorChooser(parent);
getWidgetFactory().adapt(fColorChooser.getControl(), true, true);
fColorChooser.addListener(colorListener);
}
use of com.archimatetool.editor.ui.components.ColorChooser in project archi by archimatetool.
the class BorderColorSection method createColorControl.
private void createColorControl(Composite parent) {
createLabel(parent, Messages.BorderColorSection_0, ITabbedLayoutConstants.STANDARD_LABEL_WIDTH, SWT.CENTER);
fColorChooser = new ColorChooser(parent);
fColorChooser.setDoShowDefaultMenuItem(false);
fColorChooser.setDoShowPreferencesMenuItem(false);
// No border action
fNoBorderAction = new Action(Messages.BorderColorSection_1) {
@Override
public void run() {
CompoundCommand result = new CompoundCommand();
for (EObject bo : getEObjects()) {
if (isAlive(bo)) {
Command cmd = new BorderColorCommand((IBorderObject) bo, null);
if (cmd.canExecute()) {
result.add(cmd);
}
}
}
executeCommand(result.unwrap());
}
};
fColorChooser.addMenuAction(fNoBorderAction);
getWidgetFactory().adapt(fColorChooser.getControl(), true, true);
fColorChooser.addListener(colorListener);
}
use of com.archimatetool.editor.ui.components.ColorChooser in project archi by archimatetool.
the class LineColorSection method createColorControl.
private void createColorControl(Composite parent) {
createLabel(parent, Messages.LineColorSection_0, ITabbedLayoutConstants.STANDARD_LABEL_WIDTH, SWT.CENTER);
fColorChooser = new ColorChooser(parent);
getWidgetFactory().adapt(fColorChooser.getControl(), true, true);
fColorChooser.addListener(colorListener);
}
Aggregations