Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.ComboFieldEditor


      goosEntries.add(array("<default>", ""));
      for (String goosValue : GoOs.GOOS_VALUES) {
        goosEntries.add(array(goosValue, goosValue));
    }
     
    goosEditor = new ComboFieldEditor(GoEnvironmentPrefs.GO_OS.key, "G&OOS:",
      goosEntries.toArray(String[].class), fieldParent);
    addField(goosEditor);

    goarchEditor = new ComboFieldEditor(GoEnvironmentPrefs.GO_ARCH.key, "GO&ARCH:", new String[][] {
        { "<default>", "" },
            { GoArch.ARCH_AMD64, GoArch.ARCH_AMD64 },
            { GoArch.ARCH_386, GoArch.ARCH_386 },
            { GoArch.ARCH_ARM, GoArch.ARCH_ARM } }, fieldParent);
    addField(goarchEditor);
View Full Code Here


   */
  @Override
  public void createFieldEditors() {
   
    String[] fileValues = new String[]{"5", "10", "15", "25", "50"};
    addField(new ComboFieldEditor(PreferenceConstants.P_SHOWN_FILES_COUNT, "Shown results (initially)", getArrayOfPairs(fileValues), getFieldEditorParent()));
   
    String[] lineValues = new String[]{"3", "4", "5", "7", "10", "15", "25"};
    addField(new ComboFieldEditor(PreferenceConstants.P_SHOWN_LINES_COUNT, "Preview lines", getArrayOfPairs(lineValues), getFieldEditorParent()));
   
    addBoolField(PreferenceConstants.P_SHOW_MATCH_COUNT, "Show number of matches");
   
    addBoolField(PreferenceConstants.P_SHOW_FULL_PATH, "Show full file path in results");
   
View Full Code Here

    options = new String[][] { { SymfonyCoreConstants.ANNOTATION_ERROR, SymfonyCoreConstants.ANNOTATION_ERROR },
        { SymfonyCoreConstants.ANNOTATION_WARNING, SymfonyCoreConstants.ANNOTATION_WARNING },
        { SymfonyCoreConstants.ANNOTATION_IGNORE, SymfonyCoreConstants.ANNOTATION_IGNORE } };

    addField(new ComboFieldEditor(SymfonyCoreConstants.ANNOTATION_PROBLEM_SEVERITY,
        Messages.SymfonyPreferencePage_3, options, getFieldEditorParent()));
  }
View Full Code Here

  public void createFieldEditors() {
    addField(new FileFieldEditor(PreferenceConstants.P_LOG_FILE,
        "Log file:", getFieldEditorParent()));
    addField(new FileFieldEditor(PreferenceConstants.P_XPATH_FILE,
        "Input xpaths file:", getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.P_LOG_LEVEL,
        "Log level:", PreferenceConstants.P_LEVEL_CHOICES, getFieldEditorParent()));
  }
View Full Code Here

                            TwigCoreConstants.SYNTAX_WARNING},
                    {TwigCoreConstants.SYNTAX_IGNORE,
                            TwigCoreConstants.SYNTAX_IGNORE},};
        }

        addField(new ComboFieldEditor(
                TwigCoreConstants.SYNTAX_PROBLEM_SEVERITY,
                Messages.TwigEditorPreferencePage_4, options,
                getFieldEditorParent()));

    }
View Full Code Here

TOP

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

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.