Example usage for org.eclipse.jface.preference IPreferencePage getDescription

List of usage examples for org.eclipse.jface.preference IPreferencePage getDescription

Introduction

In this page you can find the example usage for org.eclipse.jface.preference IPreferencePage getDescription.

Prototype

String getDescription();

Source Link

Document

Returns this dialog page's description text.

Usage

From source file:fr.obeo.dsl.arduino.commands.PreferencesHandler.java

License:Open Source License

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    IPreferencePage page = new ArduinoPreferencesPage();
    PreferenceManager manager = new PreferenceManager();
    IPreferenceNode node = new PreferenceNode("0", page);
    manager.addToRoot(node);/*from  w  w w .  j a  v  a  2  s  .co m*/
    Shell shell = HandlerUtil.getActiveWorkbenchWindowChecked(event).getShell();
    PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(shell, page.getDescription(), null, null);
    if (pref != null)
        pref.open();
    return null;
}

From source file:net.sourceforge.eclipsetrader.core.ui.WizardPageAdapter.java

License:Open Source License

public WizardPageAdapter(IPreferencePage preferencePage) {
    super(""); //$NON-NLS-1$
    setTitle(preferencePage.getTitle());
    setDescription(preferencePage.getDescription());
    preferencePage.setContainer(preferencePageContainer);
    setPageComplete(preferencePage.isValid());
    this.preferencePage = preferencePage;
}