Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.ColorFieldEditor


    setDescription("WOD Editor");
  }

  @Override
  public void createFieldEditors() {
    addField(new ColorFieldEditor(PreferenceConstants.ELEMENT_NAME, "Element Name Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.ELEMENT_TYPE, "Element Type Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.BINDING_NAMESPACE, "Binding Namespace Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.BINDING_NAME, "Binding Name Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.BINDING_VALUE_NAMESPACE, "Binding Value Namespace Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.BINDING_VALUE, "Binding Value Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.CONSTANT_BINDING_VALUE, "Constant Binding Value Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.OGNL_BINDING_VALUE, "OGNL Binding Value Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.OPERATOR, "Operator Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.COMMENT, "Comment Color", getFieldEditorParent()));
    addField(new ColorFieldEditor(PreferenceConstants.UNKNOWN, "Unknown Color", getFieldEditorParent()));
  }
View Full Code Here


  @Override
  protected void createFieldEditors() {
   
      Composite parent = getFieldEditorParent();

        colorComment = new ColorFieldEditor(PreferenceConstants.KEY_COLOR_COMMENT, "Comment color:", parent);
        addField(colorComment);

        colorDoc = new ColorFieldEditor(PreferenceConstants.KEY_COLOR_DOC, "Doc color:", parent);
        addField(colorDoc);

        colorKeyword = new ColorFieldEditor(PreferenceConstants.KEY_COLOR_KEYWORD, "Keyword color:", parent);
        addField(colorKeyword);

        boldAttributeKeyword = new BooleanFieldEditor(PreferenceConstants.KEY_BOLD_KEYWORD, "Bold keywords", parent);
        addField(boldAttributeKeyword);

        colorString = new ColorFieldEditor(PreferenceConstants.KEY_COLOR_STRING, "String color:", parent);
        addField(colorString);

        colorNumber = new ColorFieldEditor(PreferenceConstants.KEY_COLOR_NUMBER, "Number color:", parent);
        addField(colorNumber);

        colorNormal = new ColorFieldEditor(PreferenceConstants.KEY_COLOR_NORMAL, "Normal text color:", parent);
        addField(colorNormal);
  }
View Full Code Here

  @Override
  protected void createFieldEditors() {
   
      Composite parent = getFieldEditorParent();

        colorComment = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_COMMENT, "Comment color:", parent);
        addField(colorComment);

        colorDoc = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_DOC, "Doc color:", parent);
        addField(colorDoc);

        colorKeyword = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_KEYWORD, "Keyword color:", parent);
        addField(colorKeyword);

        boldAttributeKeyword = new BooleanFieldEditor(GradleEditorConstants.KEY_BOLD_KEYWORD, "Bold keywords", parent);
        addField(boldAttributeKeyword);

        colorString = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_STRING, "String color:", parent);
        addField(colorString);

        colorNumber = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_NUMBER, "Number color:", parent);
        addField(colorNumber);

        colorNormal = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_NORMAL, "Normal text color:", parent);
        addField(colorNormal);
  }
View Full Code Here

@Override
protected void createFieldEditors() {

Composite parent = getFieldEditorParent();

        colorComment = new ColorFieldEditor(JadeEditorConstants.KEY_COLOR_COMMENT, "Comment color:", parent);
        addField(colorComment);

        colorDoc = new ColorFieldEditor(JadeEditorConstants.KEY_COLOR_DOC, "Doc color:", parent);
        addField(colorDoc);

        colorKeyword = new ColorFieldEditor(JadeEditorConstants.KEY_COLOR_KEYWORD, "Keyword color:", parent);
        addField(colorKeyword);

        boldAttributeKeyword = new BooleanFieldEditor(JadeEditorConstants.KEY_BOLD_KEYWORD, "Bold keywords", parent);
        addField(boldAttributeKeyword);

        colorString = new ColorFieldEditor(JadeEditorConstants.KEY_COLOR_STRING, "String color:", parent);
        addField(colorString);

        colorNumber = new ColorFieldEditor(JadeEditorConstants.KEY_COLOR_NUMBER, "Number color:", parent);
        addField(colorNumber);

        colorNormal = new ColorFieldEditor(JadeEditorConstants.KEY_COLOR_NORMAL, "Normal text color:", parent);
        addField(colorNormal);
}
View Full Code Here

    Group editorGroup = new Group(getFieldEditorParent(), SWT.NONE);
    editorGroup.setText(Messages.PreferencePage_GROUP_EDITOR_SYNTAX_COLORING);
    editorGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    addField(new ColorFieldEditor(PreferenceKey.COLOR_DIRECTIVE.toString(),
        Messages.PreferencePage_FIELD_DIRECTIVE, editorGroup));
    addField(new ColorFieldEditor(PreferenceKey.COLOR_RELATED_ITEM.toString(),
        Messages.PreferencePage_FIELD_RELATED_DIRECTIVES, editorGroup));

    BooleanFieldEditor highlightRelated = new BooleanFieldEditor(
        PreferenceKey.HIGHLIGHT_RELATED_ITEMS.toString(),
        Messages.PreferencePage_FIELD_HIGHLIGHT_RELATED_DIRECTIVES,
        editorGroup) {
      @Override
      protected void doFillIntoGrid(Composite parent, int numColumns) {
        super.doFillIntoGrid(parent, 2);
      }
    };
    addField(highlightRelated);

    addField(new ColorFieldEditor(PreferenceKey.COLOR_INTERPOLATION.toString(),
        Messages.PreferencePage_FIELD_INTERPOLATION, editorGroup));
    addField(new ColorFieldEditor(PreferenceKey.COLOR_TEXT.toString(),
        Messages.PreferencePage_FIELD_TEXT, editorGroup));
    addField(new ColorFieldEditor(PreferenceKey.COLOR_COMMENT.toString(),
        Messages.PreferencePage_FIELD_COMMENT, editorGroup));
    addField(new ColorFieldEditor(PreferenceKey.COLOR_STRING.toString(),
        Messages.PreferencePage_FIELD_STRING, editorGroup));
    addField(new ColorFieldEditor(PreferenceKey.COLOR_XML_TAG.toString(),
        Messages.PreferencePage_FIELD_HTML_XML_TAG, editorGroup));
    addField(new ColorFieldEditor(PreferenceKey.COLOR_XML_COMMENT.toString(),
        Messages.PreferencePage_FIELD_HTML_XML_COMMENT, editorGroup));

    editorGroup.setLayout(createGroupLayout());

    addField(new RadioGroupFieldEditor(
View Full Code Here

   * (non-Javadoc)
   * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
   */
  @Override
  public void createFieldEditors() {
    this.gridColorEditor = new ColorFieldEditor(
        PreferencesConstants.EDITOR_GRID_COLOR,
        EditorMessages.colorPreferencePageGridColorSetting,
        getFieldEditorParent());
   
    addField(this.gridColorEditor);
   
    this.connectionColorEditor = new ColorFieldEditor(
        PreferencesConstants.EDITOR_CONNECTION_COLOR,
        EditorMessages.colorPreferencePageConnectionColorSetting,
        getFieldEditorParent());
   
    addField(this.connectionColorEditor);
   
    this.textColorEditor = new ColorFieldEditor(
        PreferencesConstants.EDITOR_TEXT_COLOR,
        EditorMessages.colorPreferencePageTextColorSetting,
        getFieldEditorParent());
   
    addField(this.textColorEditor);
   
    this.figureBackgroundColorEditor = new ColorFieldEditor(
        PreferencesConstants.EDITOR_FIGURE_BG_COLOR,
        EditorMessages.colorPreferencePageFigureBGColorSetting,
        getFieldEditorParent());
   
    addField(this.figureBackgroundColorEditor);
   
    this.figureForegroundColorEditor = new ColorFieldEditor(
        PreferencesConstants.EDITOR_FIGURE_FG_COLOR,
        EditorMessages.colorPreferencePageFigureFGColorSetting,
        getFieldEditorParent());
   
    addField(this.figureForegroundColorEditor);
   
    this.tableChartBackgroundColorEditor = new ColorFieldEditor(
        PreferencesConstants.EDITOR_TABLE_CHART_BG_COLOR,
        EditorMessages.colorPreferencePageTableChartBGColorSetting,
        getFieldEditorParent());
   
    addField(this.tableChartBackgroundColorEditor);
View Full Code Here

    @Override
    protected void createFieldEditors() {
        Composite p = getFieldEditorParent();

        ColorFieldEditor sysout = new ColorFieldEditor(PydevConsoleConstants.CONSOLE_OUTPUT_COLOR, "Stdout color", p);
        ColorFieldEditor syserr = new ColorFieldEditor(PydevConsoleConstants.CONSOLE_ERROR_COLOR, "Stderr color", p);
        ColorFieldEditor sysin = new ColorFieldEditor(PydevConsoleConstants.CONSOLE_INPUT_COLOR, "Stdin color", p);
        ColorFieldEditor prompt = new ColorFieldEditor(PydevConsoleConstants.CONSOLE_PROMPT_COLOR, "Prompt color", p);
        ColorFieldEditor background = new ColorFieldEditor(PydevConsoleConstants.CONSOLE_BACKGROUND_COLOR,
                "Background color", p);
        ColorFieldEditor debugBackground = new ColorFieldEditor(PydevConsoleConstants.DEBUG_CONSOLE_BACKGROUND_COLOR,
                "Debug console background color", p);

        addField(sysout);
        addField(syserr);
        addField(sysin);
View Full Code Here

 
  protected void createFieldEditors() {
    setTitle(ClickPlugin.getString("preferences.templateEditor"));
    Composite parent = getFieldEditorParent();
   
    ColorFieldEditor variable = new ColorFieldEditor(
        ClickPlugin.PREF_COLOR_VAR,
        ClickPlugin.getString("preferences.templateEditor.colorVariable"), parent);
    addField(variable);
   
    ColorFieldEditor directive = new ColorFieldEditor(
        ClickPlugin.PREF_COLOR_DIR,
        ClickPlugin.getString("preferences.templateEditor.colorDirective"), parent);
    addField(directive);
   
    ColorFieldEditor comment = new ColorFieldEditor(
        ClickPlugin.PREF_COLOR_CMT,
        ClickPlugin.getString("preferences.templateEditor.colorComment"), parent);
    addField(comment);
  }
View Full Code Here

   * of preferences. Each field editor knows how to save and
   * restore itself.
   */
  public void createFieldEditors()
  {
ColorFieldEditor daCol = new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_DEFAULT_TEXT,"Default &Text:",getFieldEditorParent());
    addField(daCol);
    addField(new ColorFieldEditor(EditorPreferenceConstants.P_COLOR_BACKGROUND, "Back&ground:", getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFCOMMENT,"CFML &Comment:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_BACKGROUND_CFCOMMENT,"CFML Comment &Background:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_JAVADOC, "CFScript JavaDoc:", getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_BACKGROUND_JAVADOC, "CFScript JavaDoc Background:",
        getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFTAG,"CFML &Tag:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_TAGLIB_TAG,"Taglib &Tag:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFSTRING,"CFML St&ring:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFKEYWORD,"CFML &Keyword:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFOPPERATOR,"CFML &Opperators (gt, lt, eq, etc.):",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFNUMBER,"CFML &Number:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFBUILTINSCOPE,"CFML B&uilt-in Scope (request,variables,url, etc.):",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFSCOPE,"CFML &Scope:",getFieldEditorParent()));
   
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFSCRIPT_TEXT,"CFScript Te&xt:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFSCRIPT_KEYWORD,"CFScript Key&word:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFSCRIPT_FUNCTION,"CFScript Funct&ion:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFSCRIPT_STRING,"CFScript Strin&g:",getFieldEditorParent()));

    IPreferenceNode node = this.workbench.getPreferenceManager().find("org.cfeclipse.cfml.preferences.CFMLPreferencePage").findSubNode("org.cfeclipse.cfml.preferences.EditorPreferencePage").findSubNode("org.cfeclipse.cfml.preferences.CFMLColorsPreferencePage");
    getFieldEditorParent().getParent().traverse(SWT.TRAVERSE_TAB_NEXT);
    getFieldEditorParent().getParent().redraw();
    System.err.println(node.toString());
View Full Code Here

   * restore itself.
   */
  public void createFieldEditors()
  {

    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_SQL_TEXT,"Default &Text:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_SQL_COMMENT,"SQL &Comment:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_SQL_KEYWORD,"SQL &Keyword:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_SQL_OPERATOR,"SQL &Operator:",getFieldEditorParent()));
    addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_SQL_STRING,"SQL St&ring:",getFieldEditorParent()));
   
  }
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.