我的 Eclipse 插件可以更改其他插件的首选项吗?

发布于 2024-10-10 11:36:36 字数 64 浏览 0 评论 0原文

我正在开发一个 Eclipse 插件,它需要更改其他插件定义的一些首选项,例如文本编辑器中的选项卡大小。这可能吗?

I'm working on an Eclipse plugin that needs to change some preferences defined by other plugins, e.g. the tab size in text editors. Is that possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

初心 2024-10-17 11:36:36

是的,这是可能的。

您的首选项页面中将需要此内容:

setPreferenceStore( new ScopedPreferenceStore( new InstanceScope(), "bundle-name-of-other-plugin" ) );

或者您可以执行类似的操作 在这里

仅供参考,偏好设置在这里:

pathToWorkspace\.metadata\.plugins\org.eclipse.core.runtime\.settings

Yes, it is possible.

You'll need this in your preference page:

setPreferenceStore( new ScopedPreferenceStore( new InstanceScope(), "bundle-name-of-other-plugin" ) );

Or you could do something like this here.

FYI, the preferences live here:

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