Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.IntegerFieldEditor


    setDescription("This page allows the configuration of global runtime settings.");
  }

  @Override
  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()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JAVA_MAX_HEAP_SIZE, "Maximum Java heap size (in MB):", getFieldEditorParent()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JAVA_MIN_PERMGEN_SIZE, "Minimum Java permgen size (in MB):", getFieldEditorParent()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JAVA_MAX_PERMGEN_SIZE, "Maximum Java permgen size (in MB):", getFieldEditorParent()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JMX_PORT, "Java Management Extensions port:", getFieldEditorParent()));
   
  }
View Full Code Here


  @Override
  public void createFieldEditors() {
    super.createFieldEditors();
    addField(new BooleanFieldEditor(ConfEditor.SOFT_TABS, "Indent with spaces (soft tabs)", getFieldEditorParent()));
    addField(new IntegerFieldEditor(ConfEditor.SOFT_TABS_WIDTH, "Soft tabs length", getFieldEditorParent()));
  }
View Full Code Here

        {"Warning", "warning"},
        {"Error", "error"}
    };
    addField(new ComboFieldEditor(RouteEditor.MISSING_ROUTE, "When a route is missing", missingRouteKeyValues, getFieldEditorParent()));
    addField(new BooleanFieldEditor(RouteEditor.SOFT_TABS, "Indent with spaces (soft tabs)", getFieldEditorParent()));
    addField(new IntegerFieldEditor(RouteEditor.SOFT_TABS_WIDTH, "Soft tabs length", getFieldEditorParent()));
  }
View Full Code Here

        {"Warning", "warning"},
        {"Error", "error"}
    };
    addField(new ComboFieldEditor(HTMLEditor.MISSING_ACTION, "When an action is missing", missingRouteKeyValues, getFieldEditorParent()));
    addField(new BooleanFieldEditor(HTMLEditor.SOFT_TABS, "Indent with spaces (soft tabs)", getFieldEditorParent()));
    addField(new IntegerFieldEditor(HTMLEditor.SOFT_TABS_WIDTH, "Soft tabs length", getFieldEditorParent()));
  }
View Full Code Here

    @Override
    protected void createFieldEditors() {
        final StringFieldEditor nodeNameEditor = new StringFieldEditor(
                PreferenceNames.NODE_NAME, "&Tracing node name:", getFieldEditorParent());
        final IntegerFieldEditor netTickTimeEditor = new IntegerFieldEditor(
                PreferenceNames.TICK_TIME, "&Net tick time (in seconds):",
                getFieldEditorParent());
        netTickTimeEditor.setValidRange(4, 1000);
        final IntegerFieldEditor tracesLoadLimitEditor = new IntegerFieldEditor(
                PreferenceNames.TRACES_LOAD_LIMIT, "&Max traces in tree viewer:",
                getFieldEditorParent());
        tracesLoadLimitEditor.setValidRange(1, 150);

        addField(nodeNameEditor);
        addField(netTickTimeEditor);
        addField(tracesLoadLimitEditor);
    }
View Full Code Here

        mTypeSystemFile.setChangeButtonText("Browse...");
        mTypeSystemFile.setPreferenceStore(mDotCorpusPropertyStore);
        addField(mTypeSystemFile);

        // editor line length hint
        mEditorLineLengthHint = new IntegerFieldEditor(
                DotCorpusPreferenceStore.Key.EDITOR_LINE_LENGTH_HINT.name(),
                "Line Length Hint", parent);
        mEditorLineLengthHint.setPreferenceStore(mDotCorpusPropertyStore);
        addField(mEditorLineLengthHint);
    }
View Full Code Here

        grpTileLimit.setLayout(new RowLayout(SWT.VERTICAL));
        grpTileLimit.setText(Messages.Preferences_TileLimit_Title);
     
        Composite limitFields = new Composite(grpTileLimit, SWT.NONE);
       
        IntegerFieldEditor warningFieldEditor = new IntegerFieldEditor(
                WMTPreferenceConstants.P_WMT_TILELIMIT_WARNING,
                Messages.Preferences_TileLimit_Warning,
                limitFields               
        );
        addField(warningFieldEditor);

        IntegerFieldEditor errorFieldEditor = new IntegerFieldEditor(
                WMTPreferenceConstants.P_WMT_TILELIMIT_ERROR,
                Messages.Preferences_TileLimit_Error,
                limitFields               
        );
        addField(errorFieldEditor);
View Full Code Here

    setDescription("JS Test Driver Preferences");
  }

  @Override
  protected void createFieldEditors() {
    addField(new IntegerFieldEditor(PREFERRED_SERVER_PORT, "Port to start server on",
        getFieldEditorParent()));
    addField(new BrowserChooserEditorField(SAFARI_PATH, "Path to Safari", getFieldEditorParent()));
    addField(new BrowserChooserEditorField(FIREFOX_PATH, "Path to Firefox", getFieldEditorParent()));
    addField(new BrowserChooserEditorField(CHROME_PATH, "Path to Chrome", getFieldEditorParent()));
    addField(new BrowserChooserEditorField(IE_PATH, "Path to IE", getFieldEditorParent()));
View Full Code Here

  /**
   * Creates the field editors. Field editors are abstractions of 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 IntegerFieldEditor(PreferenceConstants.LAYOUT_AREA_WIDTH, "Layout area &width", getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.LAYOUT_AREA_HEIGHT, "Layout area &height", getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.THREAD_POOL_SIZE, "&Thread Pool size", getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.HID_CONNECTION_BY_COST, "&Hide connections with cost > ", getFieldEditorParent()));

//    addField(new BooleanFieldEditor(PreferenceConstants.HID_DIRECT_CONNECTION, "&Hid direct connections", getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.LOG_POSSIBLE_PATHS_OCCURENCE, "&Log path occurences", getFieldEditorParent()));
   
    addField(new FontFieldEditor(PreferenceConstants.PROJECT_NAME_FONT, "&Project name Font", getFieldEditorParent()));
View Full Code Here

 

  @Override
  protected void createFieldEditors() {
    // editor line length hint
    mEditorLineLengthHint = new IntegerFieldEditor(
            AnnotationEditorPreferenceConstants.EDITOR_LINE_LENGTH_HINT,
            "Line Length Hint", getFieldEditorParent());
    addField(mEditorLineLengthHint);
   
    // editor text size
    mEditorTextSize = new IntegerFieldEditor(
            AnnotationEditorPreferenceConstants.ANNOTATION_EDITOR_TEXT_SIZE,
            "Editor Text Size", getFieldEditorParent());
    addField(mEditorTextSize);
   
    // load CAS with partial type system
View Full Code Here

TOP

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

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.