Examples of IntegerFieldEditor


Examples of org.eclipse.jface.preference.IntegerFieldEditor

    {
    addField(new FileFieldEditor(PrefConst.P_IMG_EDITOR_CMD, "&External Image Editor:", getFieldEditorParent()));

    addField(new FontFieldEditor(PrefConst.P_FNT_FILEBROWSE_STD, "Default Browser Font", getFieldEditorParent()));   

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MAXFILESIZE, "Max File Size (Bytes)", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_ICONSIZE, "Icon Size (pixel)", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINLEFT, "Margin Left", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINRIGHT, "Margin Right", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINTOP, "Margin Top", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINBOTTOM, "Margin Bottom", getFieldEditorParent()));
    }
View Full Code Here

Examples of org.eclipse.jface.preference.IntegerFieldEditor

    addField(new FontFieldEditor(PrefConst.P_FNT_FILEBROWSE_STD, "Default Browser Font", getFieldEditorParent()));   

    // addField(new ExtensionListEditor(getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MAXFILESIZE, "Max File Size (Bytes)", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_ICONSIZE, "Icon Size (pixel)", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINLEFT, "Margin Left", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINRIGHT, "Margin Right", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINTOP, "Margin Top", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINBOTTOM, "Margin Bottom", getFieldEditorParent()));

//    addField(new RadioGroupFieldEditor(PrefConst.P_BRW_EXTS, "Extensions", 2, new String[][]
//      {
//            {
//                "PNG", "png"
View Full Code Here

Examples of org.eclipse.jface.preference.IntegerFieldEditor

    addField(new FontFieldEditor(PrefConst.P_FNT_FILEBROWSE_STD, "Default Browser Font", getFieldEditorParent()));   

    // addField(new ExtensionListEditor(getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MAXFILESIZE, "Max File Size (Bytes)", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_ICONSIZE, "Icon Size (pixel)", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINLEFT, "Margin Left", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINRIGHT, "Margin Right", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINTOP, "Margin Top", getFieldEditorParent()));

    addField(new IntegerFieldEditor(PrefConst.P_BRW_MARGINBOTTOM, "Margin Bottom", getFieldEditorParent()));

//    addField(new RadioGroupFieldEditor(PrefConst.P_BRW_EXTS, "Extensions", 2, new String[][]
//      {
//            {
//                "PNG", "png"
View Full Code Here

Examples of org.eclipse.jface.preference.IntegerFieldEditor

   * manipulate various types of preferences. Each field editor knows how to save and restore
   * itself.
   */
  @Override
  public void createFieldEditors() {
    addField(new IntegerFieldEditor(PreferenceConstants.P_OPEN_TIMEOUT, "Open timeout:",
      getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.P_BAUD_RATE, "Baud rate:",
      getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.P_DATA_BITS, "Data bits:",
      getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.P_STOP_BITS, "Stop bits:",
      getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(PreferenceConstants.P_PARITY, "Parity", 1,
      new String[][] { { "None", "none" }, { "Even", "even" }, { "Odd", "odd" } },
      getFieldEditorParent()));
  }
View Full Code Here

Examples of org.eclipse.jface.preference.IntegerFieldEditor

        editorReuseThresholdGroup.setLayout(new GridLayout());
        editorReuseThresholdGroup.setLayoutData(new GridData(
                GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL));
        editorReuseThresholdGroup.setFont(font);

        reuseEditorsThreshold = new IntegerFieldEditor(
                IPreferenceConstants.REUSE_EDITORS,
                WorkbenchMessages.WorkbenchPreference_reuseEditorsThreshold, editorReuseThresholdGroup);

        reuseEditorsThreshold.setPreferenceStore(WorkbenchPlugin.getDefault()
                .getPreferenceStore());
View Full Code Here

Examples of org.eclipse.jface.preference.IntegerFieldEditor

        gd.horizontalAlignment = GridData.FILL;
        gd.grabExcessHorizontalSpace = true;
        groupComposite.setLayoutData(gd);
        groupComposite.setFont(composite.getFont());

        recentFilesEditor = new IntegerFieldEditor(
                IPreferenceConstants.RECENT_FILES,
                WorkbenchMessages.WorkbenchPreference_recentFiles, groupComposite);

        recentFilesEditor.setPreferenceStore(WorkbenchPlugin.getDefault()
                .getPreferenceStore());
View Full Code Here

Examples of org.eclipse.jface.preference.IntegerFieldEditor

    final Composite composite = new Composite(parent, SWT.NONE);
    if (alignedRight) {
      GridDataFactory.create(composite).grabH().alignHR().alignVM();
    }
    // set min width of text control to 40
    IntegerFieldEditor integerFieldEditor = new IntegerFieldEditor(key, text, composite);
    Text textControl = integerFieldEditor.getTextControl(composite);
    GridDataFactory.modify(textControl).hintHC(5);
    addField(integerFieldEditor);
  }
View Full Code Here

Examples of org.eclipse.jface.preference.IntegerFieldEditor

            new StringFieldEditor(
                CactusPreferences.CONTEXT_URL_HOST,
                CactusMessages.getString("CactusPreferencePage.label.host"),
                getFieldEditorParent()));
        addField(
            new IntegerFieldEditor(
                CactusPreferences.CONTEXT_URL_PORT,
                CactusMessages.getString("CactusPreferencePage.label.port"),
                getFieldEditorParent()));
        addField(
            new StringFieldEditor(
View Full Code Here

Examples of org.eclipse.jface.preference.IntegerFieldEditor

        JsonEditorPlugin.SPACES_FOR_TABS,
        "Insert Spaces For Tabs",
        getFieldEditorParent());
    addField(spacesForTab);

    IntegerFieldEditor indentSpaces = new IntegerFieldEditor(
        JsonEditorPlugin.NUM_SPACES,
        "&Number of spaces to indent:",
        getFieldEditorParent(), 1);
    indentSpaces.setValidRange(0, 10);
    addField(indentSpaces);
  }
View Full Code Here

Examples of org.eclipse.jface.preference.IntegerFieldEditor

              new String[]{
                  "Side by side with a split pane (Design first)",
                  "" + V_EDITOR_LAYOUT_SPLIT_HORIZONTAL_DESIGN},}, getFieldEditorParent());
      addField(editorLayout);
      // sync delay
      IntegerFieldEditor syncDelay =
          new IntegerFieldEditor(P_EDITOR_LAYOUT_SYNC_DELAY,
              "Sync Delay (ms):",
              getFieldEditorParent());
      syncDelay.setErrorMessage("Default syncronization delay in milliseconds must be an integer value in 250-10000 range.");
      syncDelay.setEmptyStringAllowed(false);
      syncDelay.setValidRange(-1, Integer.MAX_VALUE);
      syncDelay.getTextControl(getFieldEditorParent()).setToolTipText(
          "Set the default syncronization delay in milliseconds, -1 for syncronization on save");
      addField(syncDelay);
    }
    {
      // From com.google.gdt.eclipse.designer.preferences.MainPreferencePage
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.