Example usage for org.eclipse.jface.preference FieldEditorPreferencePage FLAT

List of usage examples for org.eclipse.jface.preference FieldEditorPreferencePage FLAT

Introduction

In this page you can find the example usage for org.eclipse.jface.preference FieldEditorPreferencePage FLAT.

Prototype

int FLAT

To view the source code for org.eclipse.jface.preference FieldEditorPreferencePage FLAT.

Click Source Link

Document

Layout constant (value 0) indicating that each field editor is handled as a single component.

Usage

From source file:com.agynamix.platform.frontend.preferences.GlobalPreferencePageDefaults.java

License:Open Source License

public GlobalPreferencePageDefaults(IPreferenceConfigAdapter configAdapter) {
    super("Application Settings", FieldEditorPreferencePage.FLAT);
    this.configAdapter = configAdapter;
    setDescription("Use this preference dialog to change Simidude's behavior.\n"
            + "\nPlease restart Simidude after making changes.");
}

From source file:com.rcpcompany.uibindings.internal.preferencePages.DefaultUIBindingsHighlightPreferencePage.java

License:Open Source License

/**
 * Constructs and returns a new initialized preference page.
 *//* www  .j  a v a  2s  .  com*/
public DefaultUIBindingsHighlightPreferencePage() {
    super(FieldEditorPreferencePage.FLAT);

    setPreferenceStore(Activator.getDefault().getPreferenceStore());
}

From source file:com.rcpcompany.uibindings.internal.preferencePages.DefaultUIBindingsScriptingPreferencePage.java

License:Open Source License

/**
 * Constructs and returns a new initialized preference page.
 *///  w  ww  . j a  v a  2 s. co  m
public DefaultUIBindingsScriptingPreferencePage() {
    super(FieldEditorPreferencePage.FLAT);

    setPreferenceStore(Activator.getDefault().getPreferenceStore());
}

From source file:com.rcpcompany.uibindings.internal.preferencePages.DefaultUIBindingsTopPreferencePage.java

License:Open Source License

/**
 * Constructs and returns a new initialized preference page.
 *//*  ww  w.ja  va  2  s.  co m*/
public DefaultUIBindingsTopPreferencePage() {
    super(FieldEditorPreferencePage.FLAT);

    setPreferenceStore(Activator.getDefault().getPreferenceStore());
}

From source file:com.rcpcompany.uibindings.internal.preferencePages.DefaultUIBindingsValidationPreferencePage.java

License:Open Source License

/**
 * Constructs and returns a new initialized preference page.
 *///from w w  w . j  a  va  2s. c o m
public DefaultUIBindingsValidationPreferencePage() {
    super(FieldEditorPreferencePage.FLAT);

    setPreferenceStore(Activator.getDefault().getPreferenceStore());
}

From source file:eu.esdihumboldt.hale.ui.templates.preferences.WebTemplatesPreferencePage.java

License:Open Source License

/**
 * Default constructor.//from w ww  . j ava 2 s . c  o  m
 */
public WebTemplatesPreferencePage() {
    super("Web Templates", FieldEditorPreferencePage.FLAT);
    setPreferenceStore(TemplatesUIPlugin.getDefault().getPreferenceStore());
}

From source file:net.mldonkey.g2gui.view.pref.Preferences.java

License:Open Source License

/**
 * @param connected are we connected to the Core
 * @param mldonkey the Core were i get all my options from
 *///  w ww. j  ava 2 s . c  om
private void createMLDonkeyOptions(CoreCommunication mldonkey) {
    OptionsInfoMap options = mldonkey.getOptionsInfoMap();
    OptionsPreferenceStore optionsStore = new OptionsPreferenceStore();
    optionsStore.setInput(options);

    Map sections = new HashMap();
    Map plugins = new HashMap();
    MLDonkeyOptions advanced = null;

    /*now we iterate over the whole thing and create the preferencePages*/
    Iterator it = options.keySet().iterator();

    while (it.hasNext()) {
        OptionsInfo option = (OptionsInfo) options.get(it.next());
        String section = option.getSectionToAppear();
        String plugin = option.getPluginToAppear();

        if ((section == null) && (plugin == null) && showOption(option)) {
            if (preferenceStore.getBoolean("advancedMode")) {
                if (advanced == null) {
                    advanced = new MLDonkeyOptions("Advanced ", FieldEditorPreferencePage.GRID);
                    advanced.setPreferenceStore(optionsStore);
                }

                advanced.addOption(option);
            }
        } else if ((section != null) && section.equalsIgnoreCase("other") && showOption(option)) {
            if (preferenceStore.getBoolean("advancedMode")) {
                if (advanced == null) {
                    advanced = new MLDonkeyOptions("Advanced ", FieldEditorPreferencePage.GRID);
                    advanced.setPreferenceStore(optionsStore);
                }

                advanced.addOption(option);
            }
        } else if ((section != null) && showOption(option)) {
            /* create the section, or if already done, only add the option */
            if (!sections.containsKey(section)) {
                MLDonkeyOptions temp = new MLDonkeyOptions(section, FieldEditorPreferencePage.GRID);

                //myprefs.addToRoot( new PreferenceNode ( section, temp ) );
                sections.put(section, temp);
                temp.setPreferenceStore(optionsStore);
            }

            ((MLDonkeyOptions) sections.get(section)).addOption(option);
        } else if ((plugin != null) && showOption(option)) {
            /* create the pluginSection, or if already done, only add the option */
            if (!plugins.containsKey(plugin)) {
                /*only create the plugin, if it is possible at all...*/
                MLDonkeyOptions temp = new MLDonkeyOptions(plugin, FieldEditorPreferencePage.GRID);
                plugins.put(plugin, temp);
                temp.setPreferenceStore(optionsStore);
            }

            ((MLDonkeyOptions) plugins.get(plugin)).addOption(option);
        }
    }

    /*Now we create the tree-structure, since we received all options*/
    /*
     * first the sections:
     */
    it = sections.keySet().iterator();

    while (it.hasNext()) {
        String key = (String) it.next();
        MLDonkeyOptions page = (MLDonkeyOptions) sections.get(key);
        addToRoot((new PreferenceNode(key, page)));
    }

    /*
     * and now the Plugins: first try to get the PrefPage "Networks", where all the "enabled"
     * options are, if this doesn't exist, create it. And then put all the plugins below this one
     */
    if (plugins.size() != 0) {
        IPreferenceNode pluginOptions = find("Networks");

        if (pluginOptions == null) {
            MLDonkeyOptions emptyItem = new MLDonkeyOptions("Networks", FieldEditorPreferencePage.FLAT);
            pluginOptions = new PreferenceNode("Networks", emptyItem);
            emptyItem.isEmpty(true);
            addToRoot(pluginOptions);
        }

        it = plugins.keySet().iterator();

        while (it.hasNext()) {
            String key = (String) it.next();
            MLDonkeyOptions page = (MLDonkeyOptions) plugins.get(key);
            pluginOptions.add((new PreferenceNode(key, page)));
        }
    }

    /*and now add the advanced-field at the very bottom of the list*/
    if (advanced != null)
        addToRoot((new PreferenceNode("Advanced", advanced)));
}

From source file:net.refractions.udig.catalog.internal.wmt.ui.preferences.WMTTilePreferencesPage.java

License:Open Source License

public WMTTilePreferencesPage() {
    super(FieldEditorPreferencePage.FLAT);
    setPreferenceStore(WMTPlugin.getDefault().getPreferenceStore());
}

From source file:org.eclipse.cdt.managedbuilder.xlc.ui.properties.XLCompilerPropertyPage.java

License:Open Source License

/**
 * Constructor for SamplePropertyPage.
 */
public XLCompilerPropertyPage() {
    super(FieldEditorPreferencePage.FLAT);

    originalMessage = getMessage();
}

From source file:org.eclipse.wst.wsdl.ui.internal.WSDLPreferencePage.java

License:Open Source License

public WSDLPreferencePage() {
    super(FieldEditorPreferencePage.FLAT);
    setPreferenceStore(WSDLEditorPlugin.getInstance().getPreferenceStore());
}