List of usage examples for org.eclipse.jface.preference PreferencePage PreferencePage
protected PreferencePage(String title)
From source file:net.sourceforge.eclipsetrader.core.ui.preferences.SecurityPropertiesDialog.java
License:Open Source License
public SecurityPropertiesDialog(Security security, Shell parentShell) { super(parentShell, new PreferenceManager()); this.security = security; getPreferenceManager().addToRoot(new PreferenceNode("general", new GeneralPage())); //$NON-NLS-1$ PreferenceNode node = new PreferenceNode("feed", new PreferencePage("Feeds") { //$NON-NLS-1$ //$NON-NLS-2$ protected Control createContents(Composite parent) { noDefaultAndApplyButton();//from w ww . j a v a 2s. c o m return new Composite(parent, SWT.NONE); } }); getPreferenceManager().addToRoot(node); node.add(new PreferenceNode("quote", new QuoteFeedPage())); //$NON-NLS-1$ node.add(new PreferenceNode("level2", new Level2FeedPage())); //$NON-NLS-1$ node.add(new PreferenceNode("history", new HistoryFeedPage())); //$NON-NLS-1$ getPreferenceManager().addToRoot(new PreferenceNode("trading", new TradeSourcePage())); //$NON-NLS-1$ getPreferenceManager().addToRoot(new PreferenceNode("intraday", new DataCollectorPage())); //$NON-NLS-1$ getPreferenceManager().addToRoot(new PreferenceNode("dividends", new DividendsPage(security))); //$NON-NLS-1$ getPreferenceManager().addToRoot(new PreferenceNode("splits", new SplitsPage(security))); //$NON-NLS-1$ getPreferenceManager().addToRoot(new PreferenceNode("notes", new CommentsPage())); //$NON-NLS-1$ }