Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.IntegerFieldEditor


    String version = InstaSearchPlugin.getVersion();
    addBoolField(PreferenceConstants.P_CHECK_UPDATES, "Notify about updates (ver. " + version + ")");
   
   
    periodicReindexEnabled = addBoolField(PreferenceConstants.P_INDEX_UPDATE_ENABLED, "Enable Automatic-Reindex");
    periodicReindexInterval =  new IntegerFieldEditor(PreferenceConstants.P_INDEX_UPDATE_INTERVAL, "Automatic Reindex interval (ms)",
                                                        getFieldEditorParent());
    periodicReindexInterval.setValidRange(0, Integer.MAX_VALUE);
    addField(periodicReindexInterval);
   
   
View Full Code Here


import com.python.pydev.debug.DebugPluginPrefsInitializer;

public class DebugPreferencesPageExt implements IDebugPreferencesPageParticipant {

    public void createFieldEditors(DebugPrefsPage page, Composite parent) {
        page.addField(new IntegerFieldEditor(DebugPluginPrefsInitializer.PYDEV_REMOTE_DEBUGGER_PORT,
                "Port for remote debugger:", parent, 10));
    }
View Full Code Here

                "Initial\ninterpreter\ncommands:\n", p));

        addField(new StringFieldEditor(JSConsoleConstants.INTERACTIVE_CONSOLE_VM_ARGS,
                "Vm Args for Rhino\n(used only on external\nprocess option):", p));

        addField(new IntegerFieldEditor(JSConsoleConstants.INTERACTIVE_CONSOLE_MAXIMUM_CONNECTION_ATTEMPTS,
                "Maximum connection attempts\nfor initial communication:", p));

        addField(new BooleanFieldEditor(JSConsoleConstants.INTERACTIVE_CONSOLE_FOCUS_ON_CONSOLE_START,
                "Focus console when it's started?", BooleanFieldEditor.SEPARATE_LABEL, p));
View Full Code Here

  @Override
  public void createFieldEditors() {
    Composite parent = getFieldEditorParent();
    addField(new BooleanFieldEditor(TaskPreferenceConstants.SPELL_CHECKING,
        "Enable spell checking", parent));
    IntegerFieldEditor field = new IntegerFieldEditor(TaskPreferenceConstants.TAB_WIDTH,
        "Displayed tab width", parent, 2);
    addField(field);
  }
View Full Code Here

        "./imgs/largeclass.png",
        "Questo smell occorre quando ad una classe viene assegnato un numero eccessivo di funzionalit�.\n"
            + "Spesso in questi casi la classe contiene un numero molto elevato di variabili d'istanza.\n\n",
            "LOC - Lines Of Code",
            "Il numero di linee di codice di un metodo, classe, package o progetto.");
    IntegerFieldEditor sgLargeClass = new IntegerFieldEditor(
        "SG_LARGE_CLASS", "Soglia 1:", getFieldEditorParent());
    bvLargeClass.setEnabledField(sgLargeClass);

    BooleanFieldEditorExt bvLongParList = new BooleanFieldEditorExt(
        "BV_LONG_PAR_LIST",
        "Long Parameter List",
        getFieldEditorParent(),
        "Long Parameter List",
        "./imgs/longparameterlist.png",
        "In un linguaggio di programmazione orientato agli oggetti se un metodo non ha a disposizione tutto ci� \n" +
        "di cui necessita pu� richiederlo ad altri oggetti.\n Per questo motivo non � necessario passare ad un metodo " +
        "tutto ci� di cui ha bisogno, ma solo ci� che\ngli � indispensabile per ottenere quello di cui necessita.\n" +
        "Si ha una occorrenza di Long Parameter List quando ad un metodo viene passato un numero eccessivo di parametri.\n\n",
        "NOPAR - Number Of Parameters",
        "Il numero di parametri passati a un metodo.");
    IntegerFieldEditor sgLongParList = new IntegerFieldEditor(
        "SG_LONG_PAR_LIST", "Soglia 1:",
        getFieldEditorParent());
    bvLongParList.setEnabledField(sgLongParList);

    BooleanFieldEditorExt bvLongMethod = new BooleanFieldEditorExt(
        "BV_LONG_METHOD", "Long Method", getFieldEditorParent(),
        "Long Method",
        "./imgs/longmethod.png",
        "Questo smell occorre quando ad un metodo ha un numero eccessivo di righe.\n"
            + "Spesso in questi casi il metodo � difficile da comprendere e complica la fase di manutenzione del codice.\n",
            "LOC - Lines Of Code",
            "Il numero di linee di codice di un metodo, classe, package o progetto.");
    IntegerFieldEditor sgLongMethod = new IntegerFieldEditor(
        "SG_LONG_METHOD", "Soglia 1:", getFieldEditorParent());
    bvLongMethod.setEnabledField(sgLongMethod);

    addField(bvLargeClass);
    addField(sgLargeClass);
View Full Code Here

        BooleanFieldEditor helpOnStart = new BooleanFieldEditor(
                Preferences.HELP_ON_START, HELP_ON_START_LABEL,
                getFieldEditorParent() );
        addField( helpOnStart );

        maxNodesField = new IntegerFieldEditor( Preferences.MAX_NODES,
                "Maximum number of nodes", getFieldEditorParent(), 4 );
        maxNodesField.setEmptyStringAllowed( false );
        addField( maxNodesField );

        maxTraversalDepthField = new IntegerFieldEditor( Preferences.MAX_TRAVERSAL_DEPTH, "Maximum Traversal Depth",
                getFieldEditorParent(), 4 );
        maxTraversalDepthField.setEmptyStringAllowed( false );
        addField( maxTraversalDepthField );
    }
View Full Code Here

  protected void createFieldEditors() {
    addField(new HudsonUrlField(getFieldEditorParent()));
   
    final BooleanFieldEditor enabled = new BooleanFieldEditor(Activator.PREF_AUTO_UPDATE, "Update periodically?", getFieldEditorParent());
    final IntegerFieldEditor interval = new IntegerFieldEditor(Activator.PREF_UPDATE_INTERVAL, "Update interval (seconds)", getFieldEditorParent());
    listener = new IPropertyChangeListener() {
          public void propertyChange(PropertyChangeEvent event) {
            if (enabled.getBooleanValue()) {
              interval.setEnabled(true, getFieldEditorParent());
            }
          }
        };
    getPreferenceStore().addPropertyChangeListener(listener);
   
View Full Code Here

        fieldEditors.add(fieldEditor);
    }

    /** Create and add an {@link IntegerFieldEditor}. */
    private void addIntegerFieldEditor(Composite parent, Option o) {
        addFieldEditor(new IntegerFieldEditor(nameOfPref(o), o.getDescription(), parent));
    }
View Full Code Here

    layout.marginWidth = 3;
    layout.marginHeight = 3;
    timoutComposite1.setLayout(layout);
    timoutComposite1.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    configTimeout = new IntegerFieldEditor(BeansCorePlugin.TIMEOUT_CONFIG_LOADING_PREFERENCE_ID, "Timeout [sec]",
        timoutComposite1);
    configTimeout.setPage(this);
    configTimeout.setPreferenceStore(BeansCorePlugin.getDefault().getPreferenceStore());
    configTimeout.load();
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.