use of name.abuchen.portfolio.ui.preferences.GeneralPreferencePage in project portfolio by buchen.
the class OpenPreferenceDialogHandler method execute.
@Execute
public void execute(@Named(IServiceConstants.ACTIVE_SHELL) Shell shell) {
PreferenceManager pm = new PreferenceManager();
// $NON-NLS-1$
pm.addToRoot(new PreferenceNode(PortfolioPlugin.PLUGIN_ID + ".updates", new UpdatePreferencePage()));
// $NON-NLS-1$
pm.addToRoot(new PreferenceNode(PortfolioPlugin.PLUGIN_ID + ".language", new LanguagePreferencePage()));
// $NON-NLS-1$
pm.addToRoot(new PreferenceNode(PortfolioPlugin.PLUGIN_ID + ".proxy", new ProxyPreferencePage()));
// $NON-NLS-1$
pm.addToRoot(new PreferenceNode(PortfolioPlugin.PLUGIN_ID + ".presentation", new PresentationPreferencePage()));
// $NON-NLS-1$
pm.addToRoot(new PreferenceNode(PortfolioPlugin.PLUGIN_ID + ".general", new GeneralPreferencePage()));
// $NON-NLS-1$
pm.addToRoot(new PreferenceNode(PortfolioPlugin.PLUGIN_ID + ".apikeys", new APIKeysPreferencePage()));
PreferenceDialog dialog = new PreferenceDialog(shell, pm);
dialog.setPreferenceStore(PortfolioPlugin.getDefault().getPreferenceStore());
dialog.create();
dialog.getTreeViewer().setComparator(new ViewerComparator());
dialog.getTreeViewer().expandAll();
dialog.open();
}
Aggregations