Examples of BooleanFieldEditor


Examples of org.eclipse.imp.preferences.fields.BooleanFieldEditor

    tabWidthDetailsLink.setEnabled(true);
    fDetailsLinks.add(tabWidthDetailsLink);


    BooleanFieldEditor spacesForTabs = fPrefUtils.makeNewBooleanField(
      page, this, fPrefService,
      "instance", "spacesForTabs", "spaces for tabs",
      "",
      parent,
      true, true,
      true, false,
      false);
    fields.add(spacesForTabs);

    Link spacesForTabsDetailsLink = fPrefUtils.createDetailsLink(parent, spacesForTabs, spacesForTabs.getChangeControl().getParent(), "Details ...");

    spacesForTabsDetailsLink.setEnabled(true);
    fDetailsLinks.add(spacesForTabsDetailsLink);


    BooleanFieldEditor UseDefaultIncludePath = fPrefUtils.makeNewBooleanField(
      page, this, fPrefService,
      "instance", "UseDefaultIncludePath", "Use default include path",
      "",
      parent,
      true, true,
      true, false,
      false);
    fields.add(UseDefaultIncludePath);

    Link UseDefaultIncludePathDetailsLink = fPrefUtils.createDetailsLink(parent, UseDefaultIncludePath, UseDefaultIncludePath.getChangeControl().getParent(), "Details ...");

    UseDefaultIncludePathDetailsLink.setEnabled(true);
    fDetailsLinks.add(UseDefaultIncludePathDetailsLink);


    DirectoryListFieldEditor IncludePathToUse = fPrefUtils.makeNewDirectoryListField(
      page, this, fPrefService,
      "instance", "IncludePathToUse", "Include path to use",
      "A semicolon-separated list of folders to search for include files",
      parent,
      true, true,
      false, "",
      false);
    fields.add(IncludePathToUse);

    Link IncludePathToUseDetailsLink = fPrefUtils.createDetailsLink(parent, IncludePathToUse, IncludePathToUse.getTextControl().getParent(), "Details ...");

    IncludePathToUseDetailsLink.setEnabled(true);
    fDetailsLinks.add(IncludePathToUseDetailsLink);


    fPrefUtils.createToggleFieldListener(UseDefaultIncludePath, IncludePathToUse, false);
    boolean isEnabledIncludePathToUse = !UseDefaultIncludePath.getBooleanValue();
        IncludePathToUse.getTextControl().setEditable(isEnabledIncludePathToUse);
        IncludePathToUse.getTextControl().setEnabled(isEnabledIncludePathToUse);
        IncludePathToUse.setEnabled(isEnabledIncludePathToUse, IncludePathToUse.getParent());

    StringFieldEditor SourceFileExtensions = fPrefUtils.makeNewStringField(
      page, this, fPrefService,
      "instance", "SourceFileExtensions", "Source file extensions",
      "A comma-separated list of file name extensions identifying the source files to process",
      parent,
      true, true,
      false, "",
      false);
    fields.add(SourceFileExtensions);

    Link SourceFileExtensionsDetailsLink = fPrefUtils.createDetailsLink(parent, SourceFileExtensions, SourceFileExtensions.getTextControl().getParent(), "Details ...");

    SourceFileExtensionsDetailsLink.setEnabled(true);
    fDetailsLinks.add(SourceFileExtensionsDetailsLink);


    BooleanFieldEditor GenerateLog = fPrefUtils.makeNewBooleanField(
      page, this, fPrefService,
      "instance", "GenerateLog", "Generate log",
      "If true, place detailed information from the build process in a log file",
      parent,
      true, true,
      true, false,
      false);
    fields.add(GenerateLog);

    Link GenerateLogDetailsLink = fPrefUtils.createDetailsLink(parent, GenerateLog, GenerateLog.getChangeControl().getParent(), "Details ...");

    GenerateLogDetailsLink.setEnabled(true);
    fDetailsLinks.add(GenerateLogDetailsLink);


    IntegerFieldEditor MaxLogEntries = fPrefUtils.makeNewIntegerField(
      page, this, fPrefService,
      "instance", "MaxLogEntries", "Maximum # of log entries",
      "",
      parent,
      true, true,
      true, "0",
      false);
    fields.add(MaxLogEntries);

    Link MaxLogEntriesDetailsLink = fPrefUtils.createDetailsLink(parent, MaxLogEntries, MaxLogEntries.getTextControl().getParent(), "Details ...");

    MaxLogEntriesDetailsLink.setEnabled(true);
    fDetailsLinks.add(MaxLogEntriesDetailsLink);


    fPrefUtils.createToggleFieldListener(GenerateLog, MaxLogEntries, true);
    boolean isEnabledMaxLogEntries = GenerateLog.getBooleanValue();
        MaxLogEntries.getTextControl().setEditable(isEnabledMaxLogEntries);
        MaxLogEntries.getTextControl().setEnabled(isEnabledMaxLogEntries);
        MaxLogEntries.setEnabled(isEnabledMaxLogEntries, MaxLogEntries.getParent());
    return fields.toArray(new FieldEditor[fields.size()]);
  }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

        setPreferenceStore(store);
    }
   
    @Override
    protected void createFieldEditors() {        
        addField(new BooleanFieldEditor(Preferences.DISPLAY_TMLEDITOR_TOOLBAR, "Display editors toolbar", getFieldEditorParent()));
    }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

  protected void createFieldEditors() {
    addField(new IntegerFieldEditor(PreferenceConstants.TOMCAT_SERVER_PORT, "Tomcat server port:", getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.TOMCAT_HTTP_PORT, "Tomcat HTTP port:", getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.TOMCAT_REDIRECT_PORT, "Tomcat redirect port:", getFieldEditorParent()));
   
    addField(new BooleanFieldEditor(PreferenceConstants.TMLSCRIPT_DEBUG,
        "enable TML-Script debugger",
        SWT.NONE, getFieldEditorParent()));

    addField(new BooleanFieldEditor(PreferenceConstants.JAVA_DEBUG,
        "enable Java debugging",
        SWT.NONE, getFieldEditorParent()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JAVA_MIN_HEAP_SIZE, "Minimum Java heap size (in MB):", getFieldEditorParent()));
   
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

        tabMisc.setControl(rateGroup);

        SupportPanel.createSupportLinks(rateGroup);


        addField(new BooleanFieldEditor(
            BCOConstants.LINK_VIEW_TO_EDITOR, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.linkViewToEditor"),
            viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.LINK_REF_VIEW_TO_EDITOR, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.linkRefViewToEditor"),
            viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.SHOW_ONLY_SELECTED_ELEMENT, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.showOnlySelected"),
            viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.SHOW_RAW_BYTECODE, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.showRawBytecode"),
            viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.SHOW_ASMIFIER_CODE, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.showAsmifierCode"),
            viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.SHOW_ANALYZER, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.showAnalyzer"), viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.SHOW_LINE_INFO, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.showLineInfo"), viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.SHOW_VARIABLES, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.showVariables"),
            viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.SHOW_STACKMAP, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.showStackMap"), viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.SHOW_HEX_VALUES, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.showHexValues"),
            viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.EXPAND_STACKMAP, BytecodeOutlinePlugin
            .getResourceString("BCOPreferencePage.expandStackMap"),
            viewGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.DIFF_SHOW_ASMIFIER_CODE, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.diffShowAsmifierCode"),
            compareGroup));
        addField(new BooleanFieldEditor(
            BCOConstants.DIFF_SHOW_LINE_INFO, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.diffShowLineInfo"),
            compareGroup));
        addField(new BooleanFieldEditor(
            BCOConstants.DIFF_SHOW_VARIABLES, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.diffShowVariables"),
            compareGroup));
        addField(new BooleanFieldEditor(
            BCOConstants.DIFF_SHOW_STACKMAP, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.diffShowStackMap"),
            compareGroup));

        addField(new BooleanFieldEditor(
            BCOConstants.DIFF_EXPAND_STACKMAP, BytecodeOutlinePlugin
                .getResourceString("BCOPreferencePage.diffExpandStackMap"),
            compareGroup));

        // addField( new BooleanFieldEditor( BCOConstants.RECALCULATE_STACKMAP,
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

    };

    addField(new ComboFieldEditor(Prefs.PROP_CHECK_SCOPE, "Check scope",
        values , getFieldEditorParent()));

    addField(new BooleanFieldEditor(Prefs.PROP_ADD_JAVAAGENT,
        "Add -javaagent:jmockit.jar when running JUnit", getFieldEditorParent()));
  }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

   * of preferences. Each field editor knows how to save and
   * restore itself.
   */
  public void createFieldEditors() {
    addField(
      new BooleanFieldEditor(
        PreferenceConstants.P_TAB_EXPAND,
        "&Expand abbreviations by Tab key",
        getFieldEditorParent()));
   
    addField(
      new BooleanFieldEditor(
          PreferenceConstants.P_UPGRADE_EDITORS,
          "&Upgrade web editors",
          getFieldEditorParent()));
   
    addField(new LabelFieldEditor(
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

          { "Yes", OutputProfile.TRUE },
          { "No", OutputProfile.FALSE },
          { "Decide", OutputProfile.DECIDE }
        }, getFieldEditorParent(), true));
   
    addField(new BooleanFieldEditor(
        getPrefName(PreferenceConstants.P_PROFILE_PLACE_CURSOR),
        "Place caret placeholders in expanded abbreviations",
        getFieldEditorParent()));
   
    addField(new BooleanFieldEditor(
        getPrefName(PreferenceConstants.P_PROFILE_INDENT),
        "Indent tags",
        getFieldEditorParent()));
   
    SpinnerFieldEditor inlineBreak = new SpinnerFieldEditor(
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

    /*
     * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
     */
    protected void createFieldEditors()
    {
        addField(new BooleanFieldEditor(PreferenceConstants.SOURCE_FOLDING,
                PreferencesMessages.sourceFolding, getFieldEditorParent()));

        addField(new SpacerFieldEditor(getFieldEditorParent()));

        addField(new LabelFieldEditor(PreferencesMessages.initiallyFold, getFieldEditorParent()));

        addField(new BooleanFieldEditor(PreferenceConstants.PERLDOC_FOLDING,
                PreferencesMessages.perldocFolding, getFieldEditorParent()));

        addField(new BooleanFieldEditor(PreferenceConstants.SUBROUTINE_FOLDING,
                PreferencesMessages.subroutineFolding, getFieldEditorParent()));
    }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

  /**
   * The method creates and adds the fields
   */
  protected void createFieldEditors() {
    // create fields
    this.markOcc = new BooleanFieldEditor(
        MarkOccurrencesPreferences.MARK_OCCURRENCES,
        "Mark occurrences of the selected element in the current file",
        getFieldEditorParent());
    this.variable = new BooleanFieldEditor(
        MarkOccurrencesPreferences.VARIABLE, "Variable",
        getFieldEditorParent());
    this.comment = new BooleanFieldEditor(
        MarkOccurrencesPreferences.COMMENT, "Comment",
        getFieldEditorParent());
    this.number = new BooleanFieldEditor(MarkOccurrencesPreferences.NUMBER,
        "Number", getFieldEditorParent());
    this.literal = new BooleanFieldEditor(
        MarkOccurrencesPreferences.LITERAL, "Literal",
        getFieldEditorParent());
        this.name = new BooleanFieldEditor(
            MarkOccurrencesPreferences.NAME, "Name (subroutines/attributes)",
            getFieldEditorParent());
    this.operator = new BooleanFieldEditor(
        MarkOccurrencesPreferences.OPERATOR, "Operator",
        getFieldEditorParent());
    this.keyword = new BooleanFieldEditor(
        MarkOccurrencesPreferences.KEYWORD, "Keyword",
        getFieldEditorParent());
    this.pod = new BooleanFieldEditor(MarkOccurrencesPreferences.POD,
        "POD", getFieldEditorParent());
    this.keepMarks = new BooleanFieldEditor(
        MarkOccurrencesPreferences.KEEP_MARKS,
        "Keep marks when the selection changes",
        getFieldEditorParent());
    addField(markOcc);
    addField(variable);
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

    @Override
    public void createFieldEditors()
    {
        dirEditor = new DirectoryFieldEditor("dir", "Directory:", getFieldEditorParent());
        addField(dirEditor);
        addField(new BooleanFieldEditor("recurse", "Recurse:", getFieldEditorParent()));
    }
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.