将列表添加到 PreferencePage
更新: 到目前为止,我找到了类 ListEditor 它提供了我正在搜索的功能,除了“编辑”按钮之外,并且仅适用于一列。
'代理绕过' 页面直接从 PreferencePage 扩展。所以没有合适的基类我可以使用。
--
添加首选项的标准 PDE 方法是使用字段编辑器(用于布尔、字符串、整数..)和子类 FieldEditorPreferencePage。
我想在首选项中集成一个类似于“网络连接”列表的列表。
网络连接首选项 http://img13.imageshack.us/img13/4489/screencapturegw.png是否
有一个带有添加/编辑/删除按钮的标准列表类,我可以使用或者正在扩展 PreferencePage 并手动执行所有加载/保存操作?
m2Eclipse 插件还有一个列表 m2Eclipse http://img695.imageshack.us/img695/ 1972/screencapture1.png
它使用 TemplatePreferencePage,功能太多
Update:
So far I found class ListEditor which provides the functionality I'm searching for except the 'edit' button and only for one column.
The 'Proxy bypass' Page extends directly from PreferencePage. So there is no proper Base Class I could use.
--
The standard PDE way of adding Preference is to use field editors (for Boolean, String, Integer..) and subclass FieldEditorPreferencePage.
I'd like to integrate a list similar to the 'Network Connections' List in Preferences.
Network Connections Preferences http://img13.imageshack.us/img13/4489/screencapturegw.png
Is there a Standard List Class with Add/Edit/Remove Button I could use or is extending the PreferencePage and do all loading/saving manually the way to go?
the m2Eclipse Plugin also has a List m2Eclipse http://img695.imageshack.us/img695/1972/screencapture1.png
it uses TemplatePreferencePage, which has too much functionality
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我记得寻找类似的东西来编辑类路径列表,但没有找到。 JDT 有一些东西,但对于我的需要来说太多了。我认为你必须自己做。如果您做一些通用的事情,您可以向 Eclipse 的平台 UI 提交增强请求并贡献它。我自己做这件事并没有太多的工作。
I remember looking for something similar to edit a list of classpaths and did not find it. JDT had something but it was too much for what I needed. I think you have to do it on your own. If you do something generic, you could file an enhancement request to platform UI at Eclipse and contribute it. Doing it on my own was not too much work.
我的结论是没有合适的基类我可以使用。
然而 代理绕过页面是如何实现此类功能的示例,它直接扩展自 首选项页面
My conclusion is there is no proper Base Class I could use.
However the Proxy Bypass Page is an example how to implement such a feature, it extends directly from PreferencePage