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();
}
Aggregations