首页 > 解决方案 > 如何使用 Eclipse e4 API 实现 PropertyPage?

问题描述

借助 Eclipse 插件,使用 3.x API,可以扩展org.eclipse.ui.propertyPages点和org.eclipse.ui.dialogs.PropertyPage对话。

有没有实现这样一个属性页的 e4 方法?

标签: eclipseeclipse-plugineclipse-rcpe4

解决方案


在纯 e4 应用程序中对此几乎没有支持。

您可以使用org.eclipse.jface.preference构成 3.x 代码基础的包中的类 - PreferenceManager, PreferenceDialogPreferencePage用于首选项和属性页)。

您必须编写自己的代码才能将页面添加到首选项管理器并显示属性对话框。


推荐阅读