Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.ColorFieldEditor


        setPreferenceStore(Activator.getDefault().getPreferenceStore());
        setDescription("Powershell preference page");
    }
   
  protected void createFieldEditors() {
      addField(new ColorFieldEditor(PreferenceConstants.COLOR_COMMENT, "Comment coloring (# comment)", getFieldEditorParent()));
        addField(new ColorFieldEditor(PreferenceConstants.COLOR_DASH_KEYWORD, "-Keyword coloring (-and, -or, etc.)", getFieldEditorParent()));
        addField(new ColorFieldEditor(PreferenceConstants.COLOR_KEYWORD, "Keyword coloring (if, for, etc.)", getFieldEditorParent()));
        addField(new ColorFieldEditor(PreferenceConstants.COLOR_STRING, "String coloring (\"String\" or 'String')", getFieldEditorParent()));
        addField(new ColorFieldEditor(PreferenceConstants.COLOR_VARIABLE, "Variable coloring ($var)", getFieldEditorParent()));
        addField(new ColorFieldEditor(PreferenceConstants.COLOR_OTHER, "General text coloring (everything else)", getFieldEditorParent()));
     
      // Tab width
      IntegerFieldEditor tabWidth = new IntegerFieldEditor(PreferenceConstants.TAB_WIDTH, "Tab width", getFieldEditorParent());
      tabWidth.setValidRange(0, 8);
      addField(tabWidth);
View Full Code Here


  public static final String COLOR_EXCEPTION="color.exception";

  @Override
  protected void createFieldEditors()
    {
    addField(new ColorFieldEditor(COLOR_THREAD_START, "Thread Start", getFieldEditorParent()));
    addField(new ColorFieldEditor(COLOR_THREAD_DEATH, "Thread Death", getFieldEditorParent()));
    addField(new ColorFieldEditor(COLOR_CLASS_LOAD, "Class Load", getFieldEditorParent()));
    addField(new ColorFieldEditor(COLOR_NEW_OBJECT, "New Object", getFieldEditorParent()));
    addField(new ColorFieldEditor(COLOR_METHOD_ENTRY, "Method Entry", getFieldEditorParent()));
    addField(new ColorFieldEditor(COLOR_METHOD_EXIT, "Method Exit", getFieldEditorParent()));
    addField(new ColorFieldEditor(COLOR_FIELD_ACCESS, "Field Access", getFieldEditorParent()));
    addField(new ColorFieldEditor(COLOR_FIELD_MODIFICATION, "Field Modification", getFieldEditorParent()));
    addField(new ColorFieldEditor(COLOR_EXCEPTION, "Exception", getFieldEditorParent()));
    }
View Full Code Here

        _colorGroup = _newGroup(composite, "Colors");

        currentComposite = _newComposite(_colorGroup);

        ColorFieldEditor color = new ColorFieldEditor(
                PreferenceConstants.EDITOR_STATE_COLOR,
                "&State variable color", currentComposite);
        addField(color);

        //currentComposite = _newComposite(currentLine);
        BooleanFieldEditor bold = new BooleanFieldEditor(
                PreferenceConstants.EDITOR_STATE_BOLD, "Bold", currentComposite);
        addField(bold);

        BooleanFieldEditor italic = new BooleanFieldEditor(
                PreferenceConstants.EDITOR_STATE_ITALIC, "Italic",
                currentComposite);
        addField(italic);

        color = new ColorFieldEditor(
                PreferenceConstants.EDITOR_ACTOR_METHOD_COLOR,
                "&Actor method color", currentComposite);
        addField(color);

        bold = new BooleanFieldEditor(
View Full Code Here

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

    ColorFieldEditor type = new ColorFieldEditor(
        ColorPreferencesIds.COLOR_TYPE, "Types", parent);
    ColorFieldEditor method = new ColorFieldEditor(
        ColorPreferencesIds.COLOR_METHOD, "Methods", parent);
    ColorFieldEditor field = new ColorFieldEditor(
        ColorPreferencesIds.COLOR_FIELD, "Fields", parent);
    ColorFieldEditor interfac = new ColorFieldEditor(
        ColorPreferencesIds.COLOR_INTERFACE, "Interfaces", parent);
    ColorFieldEditor pkge = new ColorFieldEditor(
        ColorPreferencesIds.COLOR_PACKAGE, "Packages", parent);
    ColorFieldEditor source = new ColorFieldEditor(
        ColorPreferencesIds.COLOR_SOURCE, "Source files", parent);
    ColorFieldEditor directory = new ColorFieldEditor(
        ColorPreferencesIds.COLOR_DIRECTORY, "Directories", parent);

    addField(type);
    addField(method);
    addField(field);
View Full Code Here

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

    ColorFieldEditor background = new ColorFieldEditor(
        ColorPreferencesIds.COLOR_BACKGROUND, "Background", parent);
    ColorFieldEditor foreground = new ColorFieldEditor(
        ColorPreferencesIds.COLOR_FOREGROUND, "Text color", parent);

    addField(background);
    addField(foreground);
  }
View Full Code Here

    {
      // highlight visited/executed lines
      addField(new BooleanFieldEditor(P_HIGHLIGHT_VISITED,
          "Highlight visited/executed lines in source after parse",
          getFieldEditorParent()));
      addField(new ColorFieldEditor(P_HIGHLIGHT_VISITED_COLOR,
          "Visited line highlight color:",
          getFieldEditorParent()));
    }
    {
      addField(new BooleanFieldEditor(P_COMMON_SHOW_DEBUG_INFO,
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);
    addField(colorForeground);

    colorBackground = new SystemColorFieldEditor(HTMLPlugin.PREF_COLOR_BG,HTMLPlugin.PREF_COLOR_BG_DEF,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.BackgroundColor"),
        parent);
    addField(colorBackground);
 
    colorTag = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_TAG,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.TagColor"),
          parent);
    addField(colorTag);
   
    colorWoTag = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_WO_TAG,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.WoTagColor"),
          parent);
    addField(colorWoTag);
   
    colorAttribute = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_ATTRIBUTE,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.AttributeColor"),
        parent);
    addField(colorAttribute);
   
    colorOGNL = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_OGNL,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.AttributeOGNLColor"),
        parent);
    addField(colorOGNL);
   
    colorDynamic = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_DYNAMIC,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.AttributeDynamicColor"),
        parent);
    addField(colorDynamic);
 
    colorComment = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_COMMENT,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.CommentColor"),
          parent);
    addField(colorComment);
   
    colorDoctype = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_DOCTYPE,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.DocTypeColor"),
          parent);
    addField(colorDoctype);
   
    colorString = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_STRING,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.StringColor"),
          parent);
    addField(colorString);
   
    colorScriptlet = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_SCRIPT,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.ScriptColor"),
          parent);
    addField(colorScriptlet);
   
//    colorCssProperty = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_CSSPROP,
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);
    addField(colorComment);
   
    colorString = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_JSSTRING,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JavaScriptStringColor"),
          parent);
    addField(colorString);
   
    colorKeyword = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_JSKEYWORD,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JavaScriptKeywordColor"),
        parent);
    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

  protected void createFieldEditors() {
    setTitle(HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JSP"));
   
    Composite parent = getFieldEditorParent();
   
    colorComment = new ColorFieldEditor(HTMLPlugin.PREF_JSP_COMMENT,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JSPCommentColor"),
          parent);
    addField(colorComment);
   
    colorString = new ColorFieldEditor(HTMLPlugin.PREF_JSP_STRING,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JSPStringColor"),
          parent);
    addField(colorString);
   
    colorKeyword = new ColorFieldEditor(HTMLPlugin.PREF_JSP_KEYWORD,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.JSPKeywordColor"),
        parent);
    addField(colorKeyword);
  }
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.