Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.ComboFieldEditor


            .setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

        // addField(new ComboFieldEditor(PreferenceConstants.IMAGE_TILE_CODEC,
        // "Image codec", ImageTileEncoder.getSupportedImageFormats(),
        // composite));
        addField(new ComboFieldEditor(PreferenceConstants.IMAGE_TILE_COLORS,
            "Colors", new String[][] { { "16", "16" },
                { "8 bit (256)", "256" }, { "16 bit (65K)", "65536" },
                { "24 bit (16M)", "16777216" } }, composite));
        // addField(new ScaleFieldEditor(PreferenceConstants.IMAGE_TILE_QUALITY,
        // "Quality (only jpg)",
View Full Code Here


        layout.verticalSpacing = 15;
        composite.setLayout(layout);
        composite
            .setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

        addField(new ComboFieldEditor(
            PreferenceConstants.XUGGLER_CODEC,
            "Videocodec",
            new String[][] {
                { "FLV - Flash Video (fast codec, medium bandwidth)", "flv" },
                { "H.264 (slow codec, small bandwidth, recommended)", "libx264" } },
View Full Code Here

      String preferenceKey = TagModelQuery.createPreferenceKey(((IResource) adapter).getFullPath());
      new DefaultScope().getNode(JSPCorePlugin.getDefault().getBundle().getSymbolicName()).put(preferenceKey, fValues[0]);
      ScopedPreferenceStore store = new ScopedPreferenceStore(new ProjectScope(((IResource) adapter).getProject()), JSPCorePlugin.getDefault().getBundle().getSymbolicName());

      String[][] entryNamesAndValues = new String[][]{{fDisplayTypes[0], fValues[0]}, {fDisplayTypes[1], fValues[1]}};
      fComboFieldEditor = new ComboFieldEditor(preferenceKey, JSPUIMessages.JSPFContentSettingsPropertyPage_2, entryNamesAndValues, composite);
      fComboFieldEditor.fillIntoGrid(composite, 2);
      fComboFieldEditor.setPreferenceStore(store);
      fComboFieldEditor.load();

      // let the page save for us if needed
View Full Code Here

   * manipulate various types of preferences. Each field editor knows how to save and restore
   * itself.
   */
  @Override
  public void createFieldEditors() {
    addField(new ComboFieldEditor(PreferenceConstants.P_DIALECT, "&SQL Dialect:", DIALECTS,
      getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.P_DRIVER, "&JDBC Driver:",
      getDriverList(), getFieldEditorParent()));
    addField(new StringFieldEditor(PreferenceConstants.P_URL, "&Connection URL",
      getFieldEditorParent()));
    addField(new StringFieldEditor(PreferenceConstants.P_USER, "&User", getFieldEditorParent()));
    addField(new StringFieldEditor(PreferenceConstants.P_PASSWORD, "&Password:",
View Full Code Here

        getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_AUTO_PORT,
        "Find a &unused port that between 10000~ 15000 when creating new run configuration.",
        getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.P_DEFAULT_JETTY_VERSION,
        "Default Jetty &version to use:", getJettyVersions(), getFieldEditorParent()));
  }
View Full Code Here

    {"no validation","null"},{"Info","info"},{"Warning","warn"},{"Error","error"}
  };

  @Override
  protected void createFieldEditors() {
    addField(new ComboFieldEditor(TurtlePreferenceConstants.VALIDATION_UNRESOLVED_URI_KEY, "unkown URI",resourceErrors, getFieldEditorParent()));
    addField(new ComboFieldEditor(TurtlePreferenceConstants.VALIDATION_UNRESOLVED_QNAME_KEY, "unkown QName",resourceErrors, getFieldEditorParent()));
    addField(new ComboFieldEditor(TurtlePreferenceConstants.VALIDATION_PREFIX_MISMATCH_KEY, "prefix does not match URI",otherErrors, getFieldEditorParent()));
    addField(new ComboFieldEditor(TurtlePreferenceConstants.VALIDATION_NS_MISMATCH_KEY, "URI does not match prefix",otherErrors, getFieldEditorParent()));
    addField(new ComboFieldEditor(TurtlePreferenceConstants.VALIDATION_UNUSED_PREFIX_KEY, "unused prefix",otherErrors, getFieldEditorParent()));
    addField(new ComboFieldEditor(TurtlePreferenceConstants.VALIDATION_XSD_TYPE_KEY, "XSD literal types",otherErrors, getFieldEditorParent()));
    addField(new ComboFieldEditor(TurtlePreferenceConstants.VALIDATION_DUPLICATE_SUBJECT_KEY, "duplicate subject",otherErrors, getFieldEditorParent()));
  }
View Full Code Here

    deleteButton.setEnabled(false);
    deleteButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    Composite timeUnitsComposite = new Composite(composite, SWT.NONE);

    timeUnitFieldEditor = new ComboFieldEditor(
        Activator.P_TIME_UNIT_PREFERENCE, "Time unit to use:",
        new String[][] { { "Seconds", Activator.TIME_UNIT_SECONDS },
            { "Minutes", Activator.TIME_UNIT_MINUTES },
            { "Hours", Activator.TIME_UNIT_HOURS } },
        timeUnitsComposite);
View Full Code Here

    addField(new BooleanFieldEditor(PreferenceConstants.USE_INLINE_BINDINGS_KEY, "Inline Bindings Allowed", getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.VALIDATE_BINDING_VALUES, "Binding Value Validation (Slow)", getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.VALIDATE_WOO_ENCODINGS_KEY, "WOO Encoding Validation", getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.THREADED_VALIDATION_KEY, "Threaded Validation", getFieldEditorParent()));

    addField(new ComboFieldEditor(PreferenceConstants.HTML_ERRORS_SEVERITY_KEY, "Invalid HTML", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.WOD_MISSING_COMPONENT_SEVERITY_KEY, "Missing Component", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.WOD_API_PROBLEMS_SEVERITY_KEY, "WOD API Problems", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.UNUSED_WOD_ELEMENT_SEVERITY_KEY, "Unused WOD Elements", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.WOD_ERRORS_IN_HTML_SEVERITY_KEY, "WOD Errors in Template", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.DEPRECATED_BINDING_SEVERITY_KEY, "Deprecated API in Template", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.MISSING_COLLECTION_SEVERITY_KEY, "Missing Key on NSDictionary/NSArray", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.MISSING_COMPONENT_SEVERITY_KEY, "Missing Key on 'extends WOComponent'", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.MISSING_NSKVC_SEVERITY_KEY, "Missing Key on 'implements NSKeyValueCoding'", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.AMBIGUOUS_SEVERITY_KEY, "Ambiguous Key Paths", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.AT_OPERATOR_SEVERITY_KEY, "@Operator KVC Paths", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.HELPER_FUNCTION_SEVERITY_KEY, "Helper Functions", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.INVALID_OGNL_SEVERITY_KEY, "Invalid OGNL", PreferenceConstants.IGNORE_WARNING_ERROR, getFieldEditorParent()));

    addField(new ComboFieldEditor(PreferenceConstants.WELL_FORMED_TEMPLATE_KEY, "Require well-formed HTML Template", PreferenceConstants.DEFAULT_YES_NO, getFieldEditorParent()));
  }
View Full Code Here

   */
  @Override
  public void createFieldEditors() {
    String[][] namesAndValues = new Languages().nameAndLanguageArray();

    this.defaultLanguageEditor = new ComboFieldEditor(
        PreferencesConstants.EDITOR_DEFAULT_LANGUAGE,
        EditorMessages.editorPreferencePageDefaultLanguageSetting,
        namesAndValues, getFieldEditorParent());

    addField(this.defaultLanguageEditor);

    this.preferIdAsLabelEditor = new BooleanFieldEditor(
        PreferencesConstants.EDITOR_PREFER_ID_AS_LABEL,
        EditorMessages.editorPreferencePagePreferIdAsLabelSetting,
        getFieldEditorParent());

    addField(this.preferIdAsLabelEditor);

    namesAndValues = new String[][] {
        { EditorMessages.editorPreferencePageLayoutOrientationEAST,  String.valueOf(PositionConstants.EAST) },
        { EditorMessages.editorPreferencePageLayoutOrientationSOUTH, String.valueOf(PositionConstants.SOUTH) }
    };

    this.layoutOrientationEditor = new ComboFieldEditor(
        PreferencesConstants.EDITOR_LAYOUT_ORIENTATION,
        EditorMessages.editorPreferencePageLayoutOrientationSetting,
        namesAndValues, getFieldEditorParent());

    addField(this.layoutOrientationEditor);
View Full Code Here

    Group mergeGroup = new Group(main, SWT.SHADOW_ETCHED_IN);
    GridDataFactory.fillDefaults().grab(true, false).span(GROUP_SPAN, 1)
        .applyTo(mergeGroup);
    mergeGroup.setText(UIText.GitPreferenceRoot_MergeGroupHeader);
    ComboFieldEditor mergeMode = new ComboFieldEditor(
        UIPreferences.MERGE_MODE,
        UIText.GitPreferenceRoot_MergeModeLabel,
        MERGE_MODE_NAMES_AND_VALUES, mergeGroup);
    mergeMode.getLabelControl(mergeGroup).setToolTipText(
        UIText.GitPreferenceRoot_MergeModeTooltip);
    addField(mergeMode);
    updateMargins(mergeGroup);

    Group blameGroup = new Group(main, SWT.SHADOW_ETCHED_IN);
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.