将列表添加到 PreferencePage

发布于 2024-08-14 18:23:36 字数 1319 浏览 2 评论 0原文

更新: 到目前为止,我找到了类 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

故事灯 2024-08-21 18:23:36

我记得寻找类似的东西来编辑类路径列表,但没有找到。 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.

萌吟 2024-08-21 18:23:36

我的结论是没有合适的基类我可以使用。
然而 代理绕过页面是如何实现此类功能的示例,它直接扩展自 首选项页面

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文