【问题标题】:Eclipse RCP Preference DialogEclipse RCP 首选项对话框
【发布时间】: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


    【解决方案1】:

    PreferenceDialog 就是你要找的东西。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-14
      • 2013-06-11
      • 1970-01-01
      • 2017-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多