Search in sources :

Example 1 with EditorPreferencePage

use of org.whole.lang.e4.ui.preferences.EditorPreferencePage in project whole by wholeplatform.

the class PreferencesHandler method execute.

@Execute
public void execute(Shell shell) {
    PreferenceManager manager = new PreferenceManager();
    PreferenceNode wholeNode = new PreferenceNode(IE4UIConstants.WHOLE_PREFERENCE_PAGE_ID, new WholePreferencePage());
    PreferenceNode editorNode = new PreferenceNode(IE4UIConstants.EDITOR_PREFERENCE_PAGE_ID, new EditorPreferencePage());
    manager.addToRoot(wholeNode);
    wholeNode.add(editorNode);
    PreferenceDialog dialog = new PreferenceDialog(null, manager);
    dialog.setSelectedNode(IE4UIConstants.EDITOR_PREFERENCE_PAGE_ID);
    dialog.open();
}
Also used : PreferenceDialog(org.eclipse.jface.preference.PreferenceDialog) PreferenceNode(org.eclipse.jface.preference.PreferenceNode) WholePreferencePage(org.whole.lang.e4.ui.preferences.WholePreferencePage) PreferenceManager(org.eclipse.jface.preference.PreferenceManager) EditorPreferencePage(org.whole.lang.e4.ui.preferences.EditorPreferencePage) Execute(org.eclipse.e4.core.di.annotations.Execute)

Aggregations

Execute (org.eclipse.e4.core.di.annotations.Execute)1 PreferenceDialog (org.eclipse.jface.preference.PreferenceDialog)1 PreferenceManager (org.eclipse.jface.preference.PreferenceManager)1 PreferenceNode (org.eclipse.jface.preference.PreferenceNode)1 EditorPreferencePage (org.whole.lang.e4.ui.preferences.EditorPreferencePage)1 WholePreferencePage (org.whole.lang.e4.ui.preferences.WholePreferencePage)1