0
所有节点来管理我的SWT/JFace的应用程序的喜好,我使用org.eclipse.jface.preference
如何自动扩展的PreferenceManager
我在首选项窗口3个节点:
//Creation of the nodes
PreferenceNode one = new PreferenceNode("one", new PreferencePage1());
PreferenceNode two = new PreferenceNode("two", new PreferencePage2());
PreferenceNode three = new PreferenceNode("three", new PreferencePage3());
//Creation of the manager
PreferenceManager mgr = new PreferenceManager();
mgr.addToRoot(one);
mgr.addToRoot(two);
two.add(three);
//Show the preference dialog
PreferenceDialog myPreferenceDialog = new PreferenceDialog(null, mgr);
节点three
是节点two
的子节点。
如何在PreferenceNode
的树中展开节点two
?