Search in sources :

Example 1 with ProxyPreferencePage

use of name.abuchen.portfolio.ui.preferences.ProxyPreferencePage 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();
}
Also used : UpdatePreferencePage(name.abuchen.portfolio.ui.preferences.UpdatePreferencePage) LanguagePreferencePage(name.abuchen.portfolio.ui.preferences.LanguagePreferencePage) ProxyPreferencePage(name.abuchen.portfolio.ui.preferences.ProxyPreferencePage) PreferenceDialog(org.eclipse.jface.preference.PreferenceDialog) PreferenceNode(org.eclipse.jface.preference.PreferenceNode) APIKeysPreferencePage(name.abuchen.portfolio.ui.preferences.APIKeysPreferencePage) ViewerComparator(org.eclipse.jface.viewers.ViewerComparator) PresentationPreferencePage(name.abuchen.portfolio.ui.preferences.PresentationPreferencePage) GeneralPreferencePage(name.abuchen.portfolio.ui.preferences.GeneralPreferencePage) PreferenceManager(org.eclipse.jface.preference.PreferenceManager) Execute(org.eclipse.e4.core.di.annotations.Execute)

Aggregations

APIKeysPreferencePage (name.abuchen.portfolio.ui.preferences.APIKeysPreferencePage)1 GeneralPreferencePage (name.abuchen.portfolio.ui.preferences.GeneralPreferencePage)1 LanguagePreferencePage (name.abuchen.portfolio.ui.preferences.LanguagePreferencePage)1 PresentationPreferencePage (name.abuchen.portfolio.ui.preferences.PresentationPreferencePage)1 ProxyPreferencePage (name.abuchen.portfolio.ui.preferences.ProxyPreferencePage)1 UpdatePreferencePage (name.abuchen.portfolio.ui.preferences.UpdatePreferencePage)1 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 ViewerComparator (org.eclipse.jface.viewers.ViewerComparator)1