private void createForegroundColorSelector(Composite parent) { // Fix for issue 38: Cannot enter colors using Mac OS X createEmptyTable(parent,2); // draw label Label label = new Label(parent,SWT.LEFT); label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); label.setText(LogViewerPlugin.getResourceString("preferences.ruleseditor.dialog.foreground.label")); //$NON-NLS-1$ // draw selector foregroundColorSelector = new ColorSelector(parent); foregroundColorSelector.setColorValue(new RGB(0,0,0)); foregroundColorSelector.getButton().setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING)); if(edit) { foregroundColorSelector.setColorValue(this.data.getForegroundColor()); } }
private void createBackgroundColorSelector(Composite parent) { // Fix for issue 38: Cannot enter colors using Mac OS X createEmptyTable(parent,2); // draw label Label label = new Label(parent,SWT.LEFT); label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); label.setText(LogViewerPlugin.getResourceString("preferences.ruleseditor.dialog.background.label")); //$NON-NLS-1$ // draw selector backgroundColorSelector = new ColorSelector(parent); backgroundColorSelector.setColorValue(new RGB(255,255,255)); backgroundColorSelector.getButton().setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING)); if(edit) { backgroundColorSelector.setColorValue(this.data.getBackgroundColor()); } }
l= new Label(group, SWT.LEFT); l.setText(label); final ColorSelector editor= new ColorSelector(group); fQuickDiffColorEditors[i]= editor; Button changeColorButton= editor.getButton();
l.setLayoutData(gd); fAppearanceColorEditor= new ColorSelector(stylesComposite); Button foregroundColorButton= fAppearanceColorEditor.getButton(); gd= new GridData(GridData.FILL_HORIZONTAL);
label.setLayoutData(gd); fSyntaxForegroundColorEditor= new ColorSelector(stylesComposite); Button foregroundColorButton= fSyntaxForegroundColorEditor.getButton(); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
label.setLayoutData(gd); fSyntaxForegroundColorSelector = new ColorSelector(stylesComposite); Button foregroundColorButton = fSyntaxForegroundColorSelector.getButton(); gd = new GridData(GridData.FILL_HORIZONTAL);
label.setLayoutData(gd); fConsoleColorSelector = new ColorSelector(stylesComposite); Button foregroundColorButton = fConsoleColorSelector.getButton(); gd = new GridData(GridData.FILL_HORIZONTAL);
l= new Label(group, SWT.LEFT); l.setText(label); final ColorSelector editor= new ColorSelector(group); fQuickDiffColorEditors[i]= editor; Button changeColorButton= editor.getButton();
label.setLayoutData(gd); fSyntaxForegroundColorEditor= new ColorSelector(stylesComposite); Button foregroundColorButton= fSyntaxForegroundColorEditor.getButton(); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
label.setLayoutData(gd); fSyntaxForegroundColorEditor= new ColorSelector(stylesComposite); Button foregroundColorButton= fSyntaxForegroundColorEditor.getButton(); gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
label.setText(PDEUIMessages.SyntaxColorTab_color); fColorSelector = new ColorSelector(colorComposite); Button colorButton = fColorSelector.getButton(); colorButton.setLayoutData(new GridData(GridData.BEGINNING));
l.setLayoutData(gd); fAppearanceColorEditor= new ColorSelector(stylesComposite); Button foregroundColorButton= fAppearanceColorEditor.getButton(); gd= new GridData(GridData.FILL_HORIZONTAL);
/** * Returns the change button for this field editor. * * @param parent * The control to create the button in if required. * @return the change button */ protected Button getChangeControl(Composite parent) { if (colorSelector == null) { colorSelector = new ColorSelector(parent); colorSelector.addListener(new IPropertyChangeListener() { // forward the property change of the color selector public void propertyChange(PropertyChangeEvent event) { ColorFieldEditor.this.fireValueChanged(event.getProperty(), event.getOldValue(), event.getNewValue()); setPresentsDefaultValue(false); } }); } else { checkParent(colorSelector.getButton(), parent); } return colorSelector.getButton(); }
label.setLayoutData(gd); fAnnotationForegroundColorEditor= new ColorSelector(optionsComposite); Button foregroundColorButton= fAnnotationForegroundColorEditor.getButton(); gd= new GridData(GridData.FILL_HORIZONTAL);
label.setLayoutData(gd); fAnnotationForegroundColorEditor= new ColorSelector(optionsComposite); Button foregroundColorButton= fAnnotationForegroundColorEditor.getButton(); gd= new GridData(GridData.FILL_HORIZONTAL);
attributeColorSelectors[i] = new ColorSelector( colorsAndFontsComposite ); attributeBoldButtons[i] = BaseWidgetUtils.createCheckbox( colorsAndFontsComposite, Messages .getString( "AttributesPreferencePage.Bold" ), 1 ); //$NON-NLS-1$
/** * Returns the change button for this field editor. * * @param parent * The control to create the button in if required. * @return the change button */ protected Button getChangeControl(Composite parent) { if (colorSelector == null) { colorSelector = new ColorSelector(parent); colorSelector.addListener(event -> { ColorFieldEditor.this.fireValueChanged(event.getProperty(), event.getOldValue(), event.getNewValue()); setPresentsDefaultValue(false); }); } else { checkParent(colorSelector.getButton(), parent); } return colorSelector.getButton(); }
/** * Returns the change button for this field editor. * * @param parent * The control to create the button in if required. * @return the change button */ protected Button getChangeControl(Composite parent) { if (colorSelector == null) { colorSelector = new ColorSelector(parent); colorSelector.addListener(event -> { ColorFieldEditor.this.fireValueChanged(event.getProperty(), event.getOldValue(), event.getNewValue()); setPresentsDefaultValue(false); }); } else { checkParent(colorSelector.getButton(), parent); } return colorSelector.getButton(); }
BaseWidgetUtils.createLabel( colorComposite, Messages .getString( "LdifEditorSyntaxColoringPreferencePage.Color" ), 1 ); //$NON-NLS-1$ colorSelector = new ColorSelector( colorComposite ); boldCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, Messages .getString( "LdifEditorSyntaxColoringPreferencePage.Bold" ), 1 ); //$NON-NLS-1$
fColorSelector = new ColorSelector(parent); fColorSelector.addListener(event -> { if (!event.getNewValue().equals(event.getOldValue()))