Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.ColorFieldEditor


  public void createFieldEditors() {
    Iterator<Map.Entry<String, String>> it = getColorFields().entrySet().iterator();
    while (it.hasNext()) {
      Map.Entry<String, String> pairs = it.next();
      addField(new ColorFieldEditor(pairs.getKey(), pairs.getValue(), getFieldEditorParent()));
    }
  }
View Full Code Here


    }

    public void createFieldEditors() {
        final Composite fieldParent = getFieldEditorParent();

        addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_XML_COMMENT, "XML comment",
                fieldParent));

        addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_PROC_INSTR,
                "Processing instrcution", fieldParent));

        addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_STRING, "String",
                fieldParent));

        addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_DEFAULT, "Default",
                fieldParent));

        addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_TAG, "XML tag",
                fieldParent));
    }
View Full Code Here

                                Messages.EditToolPreferences_grid, SnapBehaviour.GRID.toString()}}, getFieldEditorParent(), true));
        addField(new IntegerFieldEditor(PreferenceConstants.P_VERTEX_SIZE,
            Messages.EditToolPreferences_vertexDiameter,
                getFieldEditorParent()));

        addField(new ColorFieldEditor(PreferenceConstants.P_SNAP_CIRCLE_COLOR,
            Messages.EditToolPreferences_feedbackColor,
                getFieldEditorParent()));
       
        addField(new FeatureEditorFieldEditor(getFieldEditorParent()));
    }
View Full Code Here

                Messages.MapPreferences_defaultCRS,
                getFieldEditorParent(), 7);
        integerFieldEditor.setValidRange(-1, 9999999);
        integerFieldEditor.setErrorMessage(Messages.MapPreferences_errorMessage);
        addField(integerFieldEditor);
        addField(new ColorFieldEditor(PreferenceConstants.P_BACKGROUND,
                Messages.MapPreferences_backgroundColor,
                getFieldEditorParent()));
        addField(new ColorFieldEditor(PreferenceConstants.P_SELECTION_COLOR,
                Messages.MapPreferences_selectionColor,
                getFieldEditorParent()));
        addField(new ColorFieldEditor(PreferenceConstants.P_SELECTION2_COLOR,
                Messages.MapPreferencePage_selectionColor2,
                getFieldEditorParent()));
        PaletteSelectionFieldEditor defaultPalette = new PaletteSelectionFieldEditor(
                PreferenceConstants.P_DEFAULT_PALETTE,
                Messages.MapPreferences_defaultPalette,
View Full Code Here

        } else if (attrType == PreferenceAD.FLOAT) {     
          FloatFieldEditor fField =
            new FloatFieldEditor(prefAD.getID(), prefAD.getName(), getFieldEditorParent());
          addField(fField);
        } else if (attrType == PreferenceAD.COLOR) {     
          ColorFieldEditor cField =
            new ColorFieldEditor(prefAD.getID(), prefAD.getName(), getFieldEditorParent());
          addField(cField);
        }
      }
  }
View Full Code Here

  protected void createFieldEditors() {
    setTitle(HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JavaScript"));
   
    Composite parent = getFieldEditorParent();
   
    colorComment = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_JSCOMMENT,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JavaScriptCommentColor"),
          parent); //$NON-NLS-1$
    addField(colorComment);
   
    colorString = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_JSSTRING,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JavaScriptStringColor"),
          parent); //$NON-NLS-1$
    addField(colorString);
   
    colorKeyword = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_JSKEYWORD,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JavaScriptKeywordColor"),
        parent); //$NON-NLS-1$
    addField(colorKeyword);
  }
View Full Code Here

  protected void createFieldEditors() {
    setTitle(HTMLPlugin.getResourceString("HTMLEditorPreferencePage.Appearance"));
   
    Composite parent = getFieldEditorParent();
   
    colorForeground = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_FG,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.ForegroundColor"),
        parent); //$NON-NLS-1$
    addField(colorForeground);

    colorBackground = new SystemColorFieldEditor(HTMLPlugin.PREF_COLOR_BG,HTMLPlugin.PREF_COLOR_BG_DEF,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.BackgroundColor"),
        parent); //$NON-NLS-1$
    addField(colorBackground);
 
    colorTag = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_TAG,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.TagColor"),
          parent); //$NON-NLS-1$
    addField(colorTag);
   
    colorComment = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_COMMENT,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.CommentColor"),
          parent); //$NON-NLS-1$
    addField(colorComment);
   
    colorDoctype = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_DOCTYPE,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.DocTypeColor"),
          parent); //$NON-NLS-1$
    addField(colorDoctype);
   
    colorString = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_STRING,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.StringColor"),
          parent); //$NON-NLS-1$
    addField(colorString);
   
    colorScriptlet = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_SCRIPT,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.ScriptColor"),
          parent); //$NON-NLS-1$
    addField(colorScriptlet);
   
//    colorCssProperty = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_CSSPROP,
View Full Code Here

  protected void createFieldEditors() {
    setTitle(HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JSP"));
   
    Composite parent = getFieldEditorParent();
   
    colorComment = new ColorFieldEditor(HTMLPlugin.PREF_JSP_COMMENT,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JSPCommentColor"),
          parent); //$NON-NLS-1$
    addField(colorComment);
   
    colorString = new ColorFieldEditor(HTMLPlugin.PREF_JSP_STRING,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JSPStringColor"),
          parent); //$NON-NLS-1$
    addField(colorString);
   
    colorKeyword = new ColorFieldEditor(HTMLPlugin.PREF_JSP_KEYWORD,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JSPKeywordColor"),
        parent); //$NON-NLS-1$
    addField(colorKeyword);
  }
View Full Code Here

  protected void createFieldEditors() {
    setTitle(HTMLPlugin.getResourceString("HTMLEditorPreferencePage.CSS"));
   
    Composite parent = getFieldEditorParent();
   
    colorComment = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_CSSCOMMENT,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.CSSCommentColor"),
          parent);
    addField(colorComment);
   
    colorProperty = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_CSSPROP,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.CSSPropColor"),
          parent);
    addField(colorProperty);
   
    colorValue = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_CSSVALUE,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.CSSValueColor"),
        parent);
    addField(colorValue);
  }
View Full Code Here

    colors.setText("Modify Colors of Simple Contact List");
   
    this.colors = new Composite(colors,SWT.NULL);
    this.colors.setLayoutData(new GridData(SWT.FILL,SWT.TOP,true,false));
   
    addField(addEditorToColorGroup(new ColorFieldEditor(PreferenceConstants.P_SIMPLE_CONTACTLIST_COLORS_BACKGROUND,"Background Color",this.colors)));
    addField(addEditorToColorGroup(new ColorFieldEditor(PreferenceConstants.P_SIMPLE_CONTACTLIST_COLORS_TEXT,"Foreground Color",this.colors)));
   
    BooleanFieldEditor customizeFonts = new BooleanFieldEditor(PreferenceConstants.P_SIMPLE_CONTACTLIST_CUSTOMIZE_FONTS,"Customize Fonts",getFieldEditorParent()) {
        protected void valueChanged(boolean oldValue, boolean newValue) {
          super.valueChanged(oldValue,newValue);
          setFontsEnabledState(newValue);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.preference.ColorFieldEditor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.