Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.BooleanFieldEditor


        TextRulerLearnerParameter p = params[i];
        String id = algorithmController.getID() + "." + p.id;
        FieldEditor l = null;
        switch (p.type) {
          case ML_BOOL_PARAM: {
            l = new BooleanFieldEditor(id, p.name, top);
            fields.add(l);
            store.setDefault(id, (Boolean) values.get(p.id));
            l.setPreferenceStore(store);
            l.load();
            break;
View Full Code Here


        TextRulerLearnerParameter p = params[i];
        String id = algorithmController.getID() + "." + p.id;
        FieldEditor l = null;
        switch (p.type) {
          case ML_BOOL_PARAM: {
            l = new BooleanFieldEditor(id, p.name, top);
            fields.add(l);
            store.setDefault(id, (Boolean) values.get(p.id));
            l.setPreferenceStore(store);
            l.load();
            break;
View Full Code Here

  protected Control createContents(Composite parent) {
    Composite top = new Composite(parent, SWT.LEFT);
    top.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    top.setLayout(new GridLayout());

    sync = new BooleanFieldEditor(TestingPreferenceConstants.AUTOMATED_FILE_SYNCRONIZATION,
            "Synchronize Test-Files and Workspace automatically", top);
    sync.setPage(this);
    sync.setPreferenceStore(getPreferenceStore());
    sync.load();

    oldResults = new BooleanFieldEditor(TestingPreferenceConstants.LOAD_OLD_TEST_RESULTS,
            "Load test results from previous sessions", top);
    oldResults.setPage(this);
    oldResults.setPreferenceStore(getPreferenceStore());
    oldResults.load();

    includeSubtypes = new BooleanFieldEditor(TestingPreferenceConstants.INCLUDE_SUBTYPES,
            "Additionally include subtypes", top);
    includeSubtypes.setPage(this);
    includeSubtypes.setPreferenceStore(getPreferenceStore());
    includeSubtypes.load();
   
    allTypes = new BooleanFieldEditor(TestingPreferenceConstants.ALL_TYPES,
            "Use all types", top);
    allTypes.setPage(this);
    allTypes.setPreferenceStore(getPreferenceStore());
    allTypes.load();
   
    extendClasspath = new BooleanFieldEditor(TestingPreferenceConstants.EXTEND_CLASSPATH,
            "Extend classpath", top);
    extendClasspath.setPage(this);
    extendClasspath.setPreferenceStore(getPreferenceStore());
    extendClasspath.load();
   
View Full Code Here

        TextRulerLearnerParameter p = params[i];
        String id = algorithmController.getID() + "." + p.id;
        FieldEditor l = null;
        switch (p.type) {
          case ML_BOOL_PARAM: {
            l = new BooleanFieldEditor(id, p.name, top);
            fields.add(l);
            store.setDefault(id, (Boolean) values.get(p.id));
            l.setPreferenceStore(store);
            l.load();
            break;
View Full Code Here

    setDescription("Builder");
  }

  @Override
  protected void createFieldEditors() {
    builderResolve = new BooleanFieldEditor(RutaCorePreferences.BUILDER_RESOLVE_IMPORTS,
            RutaPreferencesMessages.BuilderResolveImports, getFieldEditorParent());
    addField(builderResolve);

    builderImport = new BooleanFieldEditor(RutaCorePreferences.BUILDER_IMPORT_BY_NAME,
            RutaPreferencesMessages.BuilderImportByName, getFieldEditorParent());
    addField(builderImport);

    builderShortNames = new BooleanFieldEditor(
            RutaCorePreferences.BUILDER_IGNORE_DUPLICATE_SHORTNAMES,
            RutaPreferencesMessages.BuilderIgnoreDuplicateShortnames, getFieldEditorParent());
    addField(builderShortNames);
  }
View Full Code Here

    setDescription("Project Management");
  }

  @Override
  protected void createFieldEditors() {
    clearOutput = new BooleanFieldEditor(RutaCorePreferences.PROJECT_CLEAR_OUTPUT,
            RutaPreferencesMessages.ProjectClearOutput, getFieldEditorParent());
    addField(clearOutput);

    noVM = new BooleanFieldEditor(RutaCorePreferences.NO_VM_IN_DEV_MODE,
            RutaPreferencesMessages.NoVMInDevMode, getFieldEditorParent());
    addField(noVM);
   
    addSDI = new BooleanFieldEditor(RutaCorePreferences.ADD_SDI,
            RutaPreferencesMessages.AddSDI, getFieldEditorParent());
    addField(addSDI);

  }
View Full Code Here

//    colorCssProperty = new ColorFieldEditor(HTMLPlugin.PREF_COLOR_CSSPROP,
//          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.CSSPropColor"),
//          parent); //$NON-NLS-1$
//    addField(colorCssProperty);
   
    highlightPair = new BooleanFieldEditor(HTMLPlugin.PREF_PAIR_CHAR,
        HTMLPlugin.getResourceString("HTMLEditorPreferencePage.PairCharacter"), parent);
    addField(highlightPair);
   
    useSoftTab = new UseSoftTabFieldEditor(HTMLPlugin.PREF_USE_SOFTTAB,
          HTMLPlugin.getResourceString("HTMLEditorPreferencePage.UseSoftTab"),
View Full Code Here

  protected void createFieldEditors() {
    Label horizontalLine;   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
   
    _showToolbarEditor = new BooleanFieldEditor(PreferenceConstants.PLAYERVIEW_SHOW_IN_TOOLBAR,
        Messages.getString("PlayerViewPage.ShowInToolbar"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(_showToolbarEditor);
   
    _toolbarSizeRFE = new RadioGroupFieldEditor(
        PreferenceConstants.PLAYERVIEW_TOOLBAR_SIZE,
        Messages.getString("PlayerViewPage.ToolbarSize"), //$NON-NLS-1$
        1,
        new String[][] { { Messages.getString("PlayerViewPage.ToolbarSizeLarge"), ToolBarSize.LARGE.getValue() }, { //$NON-NLS-1$ //$NON-NLS-2$
                  Messages.getString("PlayerViewPage.ToolbarSizeMedium"), ToolBarSize.MEDIUM.getValue() }, { //$NON-NLS-1$ //$NON-NLS-2$
                  Messages.getString("PlayerViewPage.ToolbarSizeSmall"), ToolBarSize.SMALL.getValue() }
              }, //$NON-NLS-1$ //$NON-NLS-2$
        getFieldEditorParent());
    addField(_toolbarSizeRFE);
   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
   
    BooleanFieldEditor useNativeSliderEditor = new BooleanFieldEditor(PreferenceConstants.PLAYERVIEW_USE_NATIVE_SLIDER,
        Messages.getString("PlayerViewPage.UseNativeSlider"), //$NON-NLS-1$
        getFieldEditorParent());
    useNativeSliderEditor.getDescriptionControl(getFieldEditorParent()).setToolTipText((Messages.getString("PlayerViewPage.UseNativeSliderExplanation"))); //$NON-NLS-1$
    addField(useNativeSliderEditor);
   
    addField(new IntegerFieldEditor(PreferenceConstants.PLAYERVIEW_SEEK_STEP,
        Messages.getString("PlayerViewPage.SeekStep"), //$NON-NLS-1$
        getFieldEditorParent()));             
View Full Code Here

 
    descLabel = new Label(getFieldEditorParent(), SWT.NONE);
    descLabel.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
    descLabel.setText(Messages.getString("OSDPage.OSDActivations"));
   
    _useOSD = new BooleanFieldEditor(PreferenceConstants.OSD_SHOW,
        Messages.getString("OSDPage.UseOSD"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(_useOSD);
   
    _onlyShowMinimized = new BooleanFieldEditor(PreferenceConstants.OSD_ONLY_SHOW_MINIMIZED,
        Messages.getString("OSDPage.OnlyShowMinimized"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(_onlyShowMinimized);
   
    addField(new BooleanFieldEditor(PreferenceConstants.OSD_SHOW_ON_PODCAST_UPDATE,
        Messages.getString("OSDPage.ShowOnPodcastUpdate"), //$NON-NLS-1$
        getFieldEditorParent()));
   
    addField(new BooleanFieldEditor(PreferenceConstants.OSD_SHOW_ON_PODCAST_DOWNLOAD_END,
        Messages.getString("OSDPage.ShowOnPodcastDownloadEnd"), //$NON-NLS-1$
        getFieldEditorParent()));
   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
   
    descLabel = new Label(getFieldEditorParent(), SWT.NONE);
    descLabel.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
    descLabel.setText(Messages.getString("OSDPage.OSDParameters"));
   
    _useAlpha = new BooleanFieldEditor(PreferenceConstants.OSD_USE_ALPHA,
        Messages.getString("OSDPage.UseAlpha"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(_useAlpha);
   
    _OSDDelay = new IntegerFieldEditor(PreferenceConstants.OSD_DELAY,
View Full Code Here

        Messages.getString("MPlayerEnginePage.MPlayerAdditionalOptions"), //$NON-NLS-1$
        getFieldEditorParent());
    additionalOptionsEditor.getTextControl(getFieldEditorParent()).setToolTipText(Messages.getString("MPlayerEnginePage.AdditionalOptionsTooltip")); //$NON-NLS-1$
    addField(additionalOptionsEditor);
   
    addField(new BooleanFieldEditor(PreferenceConstants.MPLAYER_USE_VOLUME_NORMALIZATION,
        Messages.getString("MPlayerEnginePage.UseVolumeNormalization"), //$NON-NLS-1$
        getFieldEditorParent()));
   
    useVolume = new BooleanFieldEditor(PreferenceConstants.MPLAYER_USE_VOLUME_COMMAND,
        Messages.getString("MPlayerEnginePage.UseVolumeCommand"), //$NON-NLS-1$
        getFieldEditorParent());
    useVolume.getDescriptionControl(getFieldEditorParent()).setToolTipText(Messages.getString("MPlayerEnginePage.VolumeCommandExplanation")); //$NON-NLS-1$
    addField(useVolume);     
   
    forceProxySettings = new BooleanFieldEditor(PreferenceConstants.MPLAYER_FORCE_PROXY_SETTINGS,
        Messages.getString("MPlayerEnginePage.ForceProxySettings"), //$NON-NLS-1$
        getFieldEditorParent());
    forceProxySettings.getDescriptionControl(getFieldEditorParent()).setToolTipText(Messages.getString("MPlayerEnginePage.ForceProxySettingsExplanation")); //$NON-NLS-1$
    addField(forceProxySettings);
   
View Full Code Here

TOP

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

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.