Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.ComboFieldEditor


        {"Current file", Prefs.CheckScope.File.name()},
        {"Current project", Prefs.CheckScope.Project.name()},
        {"Disabled", Prefs.CheckScope.Disabled.name()}
    };

    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


    String[][] missingRouteKeyValues = {
        {"Ignore", "ignore"},
        {"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

    String[][] missingRouteKeyValues = {
        {"Ignore", "ignore"},
        {"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

        }

    Composite projectPanel = new Composite(parent, SWT.NONE);
    projectPanel.setLayout(new GridLayout(1, false));
    projectPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        project = new ComboFieldEditor("projectSelect",
            Messages.ExportSelectionPage_Project, projects, projectPanel );
        project.setPage( this );
        project.setPropertyChangeListener( new IPropertyChangeListener(){
            public void propertyChange( PropertyChangeEvent event ) {
                selectProject( (String) event.getNewValue() );
View Full Code Here

                    org.locationtech.udig.ui.preferences.PreferenceConstants.P_ADVANCED_GRAPHICS,
                    Messages.UiPreferences_advancedGraphics_label, getFieldEditorParent()));
        //}
          
            String[][] values = {{Messages.UiPreferences_AutoUnits, PreferenceConstants.AUTO_UNITS}, {Messages.UiPreferences_MetricUnits, PreferenceConstants.METRIC_UNITS}, {Messages.UiPreferences_ImperialUnits,PreferenceConstants.IMPERIAL_UNITS}};
            addField(new ComboFieldEditor(org.locationtech.udig.ui.preferences.PreferenceConstants.P_DEFAULT_UNITS, Messages.UiPreferences_UnitsLabel, values, 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 ComboFieldEditor(PreferenceConstants.JSB_INDENT,
        "Indent with", indentArray, getFieldEditorParent()));

    addField(new BooleanFieldEditor(PreferenceConstants.JSB_PRESERVE_EMPTY,
        "Preserve empty lines", getFieldEditorParent()));

    addField(new BooleanFieldEditor(PreferenceConstants.JSB_DETECT_PACKERS,
        "Detect packers", getFieldEditorParent()));

    addField(new BooleanFieldEditor(PreferenceConstants.JSB_IDENT_SPACE,
        "Add space after identifiers (function, catch, etc.)",
        getFieldEditorParent()));

    addField(new BooleanFieldEditor(PreferenceConstants.JSB_LINT_HAPPY,
        "Enable jslint strict mode",
        getFieldEditorParent()));

    addField(new ComboFieldEditor(PreferenceConstants.JSB_BRACE_STYLE,
        "Brace Style", braceArray, getFieldEditorParent()));
    /*Link lnk = new Link(getFieldEditorParent(), 0);
    lnk.setText("See <a href=\"http://jsbeautifier.org/\">http://jsbeautifier.org/</a> for details.");*/
   
  }
 
View Full Code Here

    int pos = 0;
    for (HadoopVersion ver : versions) {
      values[pos][0] = values[pos][1] = ver.getDisplayName();
      pos++;
    }
    ComboFieldEditor options = new ComboFieldEditor(PreferenceConstants.P_VERSION, "&Hadoop Version:", values, getFieldEditorParent());
    addField(options);
    hadoopVersionEditor = options;
    hadoopHomeDirEditor = editor;
    hadoopVersionValue = HadoopVersion.Version1.getDisplayName();
  }
View Full Code Here

        String[][] pagesLabelsAndValues = new String[2][2];
        pagesLabelsAndValues[0][0] = "Table";
        pagesLabelsAndValues[0][1] = "0";
        pagesLabelsAndValues[1][0] = "Source";
        pagesLabelsAndValues[1][1] = "1";
        addField(new ComboFieldEditor(
                PreferenceConstants.DEFAULT_VIEW_PAGE,
                "Select the default tab to view csv file:",
                pagesLabelsAndValues,
                getFieldEditorParent()));
View Full Code Here

    severityValues[0][1] = "0";
    severityValues[1][0] = "warning";
    severityValues[1][1] = "1";
    severityValues[2][0] = "error";
    severityValues[2][1] = "2";
    cbSeverity = new ComboFieldEditor(SEVERITY, "Show wicket errors as", severityValues, composite);
    cbSeverity.setPreferenceStore(getPreferenceStore());
    cbSeverity.setPage(this);
    cbSeverity.load();

    sfExcludes = new StringFieldEditor(EXCLUDES, "exclude project paths from being checked (comma separated)", composite);
View Full Code Here

        beepUponIM.setEnabled(true, chatGroup);

        skypeName = new StringFieldEditor(PreferenceConstants.SKYPE_USERNAME,
            "Skype name:", getFieldEditorParent());

        audioQuality = new ComboFieldEditor(
            PreferenceConstants.AUDIO_QUALITY_LEVEL,
            "Audio Quality Level (0-10) - 10 is best", audioQualityValues,
            voipGroup);

        ComboFieldEditor audioSamplerate = new ComboFieldEditor(
            PreferenceConstants.AUDIO_SAMPLERATE, "Audio Samplerate (kHz)",
            get2dArray(AudioSettings.AUDIO_SAMPLE_RATE), voipGroup);

        audio_vbr = new BooleanFieldEditor(
            PreferenceConstants.AUDIO_VBR,
            "Use Variable Bitrate (gives a better quality-to-space ratio, but may introduce a delay)",
            voipGroup);

        audio_dtx = new BooleanFieldEditor(
            PreferenceConstants.AUDIO_ENABLE_DTX,
            "Use Discontinuous Transmission (silence is not transmitted - only works with variable bitrate)",
            voipGroup);

        audio_dtx.setEnabled(prefs.getBoolean(PreferenceConstants.AUDIO_VBR),
            voipGroup);

        ComboFieldEditor audioPlaybackDevs = new ComboFieldEditor(
            PreferenceConstants.AUDIO_PLAYBACK_DEVICE, "Audio Playback Device",
            getPlaybackMixersString(), voipGroup);

        ComboFieldEditor audioRecordDevs = new ComboFieldEditor(
            PreferenceConstants.AUDIO_RECORD_DEVICE, "Audio Record Device",
            getRecordMixersString(), voipGroup);

        addField(chatserver);
        addField(useDefaultChatServer);
View Full Code Here

TOP

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

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.