PreferenceManager pm = new PreferenceManager();
pm.addToRoot(new PreferenceNode(PortfolioPlugin.PLUGIN_ID + ".updates", new UpdatePreferencePage())); //$NON-NLS-1$
PreferenceDialog dialog = new PreferenceDialog(shell, pm);
dialog.setPreferenceStore(PortfolioPlugin.getDefault().getPreferenceStore());
dialog.create();
dialog.getTreeViewer().setComparator(new ViewerComparator());
dialog.getTreeViewer().expandAll();
dialog.open();
}
}