【发布时间】:2012-05-02 14:45:50
【问题描述】:
问题
是否可以创建第二个 Preference Dialog,它可以使用一些 PreferencePage,就像标准的 eclipse Preference(Eclipse > Preferences 或 Window > Preferences)?
目前的方法
到目前为止,我的解决方案是通过扩展 Dialog 创建我自己的 PreferenceEditorDialog 并实现我自己的 Preference Dialog 样式布局。
/**
* A preference dialog is a hierarchical presentation of preference pages. Each
* page is represented by a node in the tree shown on the left hand side of the
* dialog; when a node is selected, the corresponding page is shown on the right
* hand side.
*/
public class PreferenceEditorDialog extends Dialog implements IPageChangeProvider {
}
我宁愿重用 Eclipse 实现,因为我不必自己维护代码。
【问题讨论】:
标签: java eclipse eclipse-rcp