问题
是否可以创建第二个首选项对话框,它可以采用一些 PreferencePage
,很像标准的 eclipse 首选项(Eclipse > 首选项或窗口 > 首选项)?
当前方法
到目前为止,我的解决方案是通过扩展 Dialog
并实现我自己的 Preference Dialog 样式布局来创建我自己的 PreferenceEditorDialog
。
/**
* 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 实现,因为我不必自己维护代码。
最佳答案
PreferenceDialog
正是您要找的。p>
关于java - Eclipse RCP 首选项对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10405931/