Examples of ComboFieldEditor


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

Examples of org.eclipse.jface.preference.ComboFieldEditor

   */
  @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

Examples of org.eclipse.jface.preference.ComboFieldEditor

    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

Examples of org.eclipse.jface.preference.ComboFieldEditor

  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

Examples of org.eclipse.jface.preference.ComboFieldEditor

                            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

Examples of org.eclipse.wb.core.controls.jface.preference.ComboFieldEditor

  private void createComboFieldEditor(String key,
      String labelText,
      String[][] entryNamesAndValues,
      Composite parent) {
    final Composite composite = new Composite(parent, SWT.NONE);
    addField(new ComboFieldEditor(key, labelText, entryNamesAndValues, composite));
  }
View Full Code Here

Examples of org.eclipse.wb.core.controls.jface.preference.ComboFieldEditor

      label.setText("Close and re-open any editors to see the effects of these preferences.");
      GridDataFactory.create(label).spanH(2).alignHF();
    }
    {
      // editor layout mode
      ComboFieldEditor editorLayout =
          new ComboFieldEditor(P_EDITOR_LAYOUT, "Editor layout:", new String[][]{
              new String[]{
                  "On separate notebook tabs (Source first)",
                  "" + V_EDITOR_LAYOUT_PAGES_SOURCE},
              new String[]{
                  "On separate notebook tabs (Design first)",
View Full Code Here

Examples of org.python.pydev.utils.ComboFieldEditor

        addField(rightTrimMultilineLiterals);

        addNewLineAtEndOfFile = createBooleanFieldEditor(ADD_NEW_LINE_AT_END_OF_FILE, "Add new line at end of file?", p);
        addField(addNewLineAtEndOfFile);

        spacesBeforeComment = new ComboFieldEditor(SPACES_BEFORE_COMMENT, "Spaces before a comment?",
                ENTRIES_AND_VALUES_FOR_SPACES, p);
        addField(spacesBeforeComment);

        spacesInStartComment = new ComboFieldEditor(SPACES_IN_START_COMMENT, "Spaces in comment start?",
                ENTRIES_AND_VALUES_FOR_SPACES2, p);
        addField(spacesInStartComment);

        formatAndStyleRangeHelper = new StyledTextForShowingCodeFactory();
        labelExample = formatAndStyleRangeHelper.createStyledTextForCodePresentation(p);
View Full Code Here

Examples of org.python.pydev.utils.ComboFieldEditor

        addField(new LinkFieldEditor("link_" + flag, linkText, p, new PyUnitPrefsPage2.PyUnitPageLinkListener(flag),
                tooltip + "\n", tooltipPresenter));
    }

    public static ComboFieldEditor createTestRunnerEditor(Composite p) {
        return new ComboFieldEditor(TEST_RUNNER, "Test Runner", ENTRY_NAMES_AND_VALUES, p);
    }
View Full Code Here

Examples of org.python.pydev.utils.ComboFieldEditor

    /**
     * Creates the editors
     */
    protected void createFieldEditors() {
        Composite p = getFieldEditorParent();
        addField(new ComboFieldEditor(PySourceLocatorPrefs.ON_SOURCE_NOT_FOUND,
                "Action when source is not directly found:", ENTRIES_AND_VALUES, p));

        addField(new IntegerFieldEditor(PySourceLocatorPrefs.FILE_CONTENTS_TIMEOUT,
                "Timeout to get file contents (millis):", p));

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.