Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.BooleanFieldEditor


                        + "library.");

        Group group = _newGroup(composite, "Configuration");

        Composite currentComposite = _newComposite(group);
        _generateConfiguration = new BooleanFieldEditor(
                PreferenceConstants.BACKTRACK_GENERATE_CONFIGURATION,
                "&Generate configuration", currentComposite) {
            protected void doLoadDefault() {
                super.doLoadDefault();
                _configuration.setEnabled(getBooleanValue(),
View Full Code Here


    private void _createSection5() {
        Composite composite = _createSection("Miscellaneous",
                "Set other options.");

        Composite currentComposite = _newComposite(composite);
        _overwrite = new BooleanFieldEditor(
                PreferenceConstants.BACKTRACK_OVERWRITE,
                "&Overwrite existing files", currentComposite);
        _setParent(_overwrite, currentComposite);
        addField(_overwrite);
    }
View Full Code Here

  }

  @Override
  protected void createFieldEditors()
  {
    preventLaunch = new BooleanFieldEditor(IDestecsPreferenceConstants.ACTIVATE_DESTECSCHECK_PREFERENCE, "Prevent launch of Co-Simulations with Contract/Link errors", getFieldEditorParent()) ;   
    addField(preventLaunch);

  }
View Full Code Here

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

    // colors: on/off
    BooleanFieldEditor nodeColors = new BooleanFieldEditor(
        NodePreferencesIds.NODE_COLOR_ON, "Node coloring...", parent);
    // color: mode
    RadioGroupFieldEditor colorSelect = new RadioGroupFieldEditor(
        NodePreferencesIds.NODE_COLOR, "...shows...", 3, new String[][] {
            {"Degree", NodeColors.DEGREE.toString()},
            {"Role", NodeColors.ROLE.toString()},
            {"Voltage", NodeColors.VOLTAGE.toString()}
        }, parent, true);

    // shape: on/off
    BooleanFieldEditor nodeShapes = new BooleanFieldEditor(
        NodePreferencesIds.NODE_SHAPE_ON, "Node shapes...", parent);
    // shape: mode
    RadioGroupFieldEditor shapeSelect = new RadioGroupFieldEditor(
        NodePreferencesIds.NODE_SHAPE, "...shows...", 2, new String[][] {
            {"Degree", NodeShape.DEGREE.toString()},
            {"Role", NodeShape.ROLE.toString()},
        }, parent, true);

    // size: on/off
    BooleanFieldEditor nodeSizes = new BooleanFieldEditor(
        NodePreferencesIds.NODE_SIZE_ON, "Node sizes...", parent);
    // size: mode
    RadioGroupFieldEditor sizeSelect = new RadioGroupFieldEditor(
        NodePreferencesIds.NODE_SIZE, "...shows...", 2, new String[][] {
            {"Degree", NodeSize.DEGREE.toString()},
            {"Voltage", NodeSize.VOLTAGE.toString()},
        }, parent, true);

    // ratio: on/off
    BooleanFieldEditor nodeRatio = new BooleanFieldEditor(
        NodePreferencesIds.NODE_RATIO_ON, "Enable node ratio", parent);

    // highlight root nodes: on/off
    BooleanFieldEditor rootHighlight = new BooleanFieldEditor(
        NodePreferencesIds.NODE_ROOT_HIGHLIGHT_ON, "Enable root highlight", parent);

    // highlight selected nodes: on/off
    BooleanFieldEditor strokeHighlight = new BooleanFieldEditor(
        NodePreferencesIds.NODE_STROKE_HIGHLIGHT_ON, "Enable stroke highlight", parent);

    // add fields to the page
    addField(nodeColors);
    addField(colorSelect);
View Full Code Here

   * the common GUI blocks needed to manipulate various types
   * of preferences. Each field editor knows how to save and
   * restore itself.
   */
  public void createFieldEditors() {
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_ENABLE_ECLIPSE_LISTENER,
        "&Enable Eclipse Listener to prevent Jetty leaks when Eclipse crash (Take effect after Eclipse restarted).",
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_DEFAULT_ENABLE_SCANNER,
        "Default Enable &Scanner when create new run configuration.",
        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

   * the common GUI blocks needed to manipulate various types
   * of preferences. Each field editor knows how to save and
   * restore itself.
   */
  public void createFieldEditors() {
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_ENABLE_ECLIPSE_LISTENER,
        "&Enable Eclipse Listener to prevent Jetty leaks when Eclipse crash (Take effect after Eclipse restarted).",
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_DEFAULT_ENABLE_SCANNER,
        "Default Enable &Scanner when create new run configuration.",
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_AUTO_PORT,
        "Find a &unused port that between 10000~ 15000 when creating new run configuration.",
        getFieldEditorParent()));
  }
View Full Code Here

  private void createSessionManagementGroup(final Composite parent) {
    FieldEditor editor;
    final Group group = createGroup(parent,
        UIMessages.CoverageSessionManagement_titel);
    editor = new BooleanFieldEditor(UIPreferences.PREF_SHOW_COVERAGE_VIEW,
        UIMessages.CoveragePreferencesShowCoverageView_label, group);
    addField(editor);
    editor.fillIntoGrid(group, 2);
    editor = new BooleanFieldEditor(UIPreferences.PREF_ACTICATE_NEW_SESSIONS,
        UIMessages.CoveragePreferencesActivateNewSessions_label, group);
    addField(editor);
    editor.fillIntoGrid(group, 2);
    editor = new BooleanFieldEditor(UIPreferences.PREF_AUTO_REMOVE_SESSIONS,
        UIMessages.CoveragePreferencesAutoRemoveSessions_label, group);
    addField(editor);
    editor.fillIntoGrid(group, 2);
    adjustGroupLayout(group);
  }
View Full Code Here

  private void createDefaultScopeGroup(final Composite parent) {
    FieldEditor editor;
    final Group group = createGroup(parent,
        UIMessages.CoveragePreferencesDefaultScope_title);
    editor = new BooleanFieldEditor(
        UIPreferences.PREF_DEFAULT_SCOPE_SOURCE_FOLDERS_ONLY,
        UIMessages.CoveragePreferencesSourceFoldersOnly_label, group);
    addField(editor);
    editor.fillIntoGrid(group, 2);
    editor = new BooleanFieldEditor(
        UIPreferences.PREF_DEFAULT_SCOPE_SAME_PROJECT_ONLY,
        UIMessages.CoveragePreferencesSameProjectOnly_label, group);
    addField(editor);
    editor.fillIntoGrid(group, 2);
    editor = new StringFieldEditor(UIPreferences.PREF_DEFAULT_SCOPE_FILTER,
View Full Code Here

        (IWorkbenchPreferenceContainer) getContainer(), null);
    return parent;
  }

  protected void createFieldEditors() {
    addField(new BooleanFieldEditor(UIPreferences.PREF_SHOW_COVERAGE_VIEW,
                                    UIMessages.CoveragePreferencesShowCoverageView_label,
                                    getFieldEditorParent()));
    addField(new BooleanFieldEditor(UIPreferences.PREF_ACTICATE_NEW_SESSIONS,
                                    UIMessages.CoveragePreferencesActivateNewSessions_label,
                                    getFieldEditorParent()));
    addField(new BooleanFieldEditor(UIPreferences.PREF_AUTO_REMOVE_SESSIONS,
                                    UIMessages.CoveragePreferencesAutoRemoveSessions_label,
                                    getFieldEditorParent()));
    addField(new ToggleValueFieldEditor(UIPreferences.PREF_ALLOW_INPLACE_INSTRUMENTATION,
                                    UIMessages.CoveragePreferencesShowInplaceWarning_label,
                                    getFieldEditorParent(),
View Full Code Here

  protected void createFieldEditors() {
    ContextHelp.setHelp(getControl(), ContextHelp.COVERAGE_PREFERENCES);

    final Composite parent = getFieldEditorParent();
    addField(new BooleanFieldEditor(UIPreferences.PREF_SHOW_COVERAGE_VIEW,
        UIMessages.CoveragePreferencesShowCoverageView_label, parent));
    addField(new BooleanFieldEditor(UIPreferences.PREF_ACTICATE_NEW_SESSIONS,
        UIMessages.CoveragePreferencesActivateNewSessions_label, parent));
    addField(new BooleanFieldEditor(UIPreferences.PREF_AUTO_REMOVE_SESSIONS,
        UIMessages.CoveragePreferencesAutoRemoveSessions_label, parent));
    addField(new ToggleValueFieldEditor(
        UIPreferences.PREF_ALLOW_INPLACE_INSTRUMENTATION,
        UIMessages.CoveragePreferencesShowInplaceWarning_label, parent,
        MessageDialogWithToggle.PROMPT, MessageDialogWithToggle.ALWAYS));

    // Default instrumentation:
    createSpacer(parent);
    createLabel(parent,
        UIMessages.CoveragePreferencesDefaultInstrumentation_title);
    addField(new BooleanFieldEditor(
        UIPreferences.PREF_DEFAULT_INSTRUMENTATION_SOURCE_FOLDERS_ONLY,
        UIMessages.CoveragePreferencesSourceFoldersOnly_label, parent));
    addField(new BooleanFieldEditor(
        UIPreferences.PREF_DEFAULT_INSTRUMENTATION_SAME_PROJECT_ONLY,
        UIMessages.CoveragePreferencesSameProjectOnly_label, parent));
    addField(new StringFieldEditor(
        UIPreferences.PREF_DEFAULT_INSTRUMENTATION_FILTER,
        UIMessages.CoveragePreferencesClasspathFilter_label, parent));
View Full Code Here

TOP

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

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.