我正在开发一个 Eclipse 插件,它需要更改其他插件定义的一些首选项,例如文本编辑器中的选项卡大小。这可能吗?
最佳答案
是的,这是可能的。
您的偏好设置页面中将需要此信息:
setPreferenceStore( new ScopedPreferenceStore( new InstanceScope(), "bundle-name-of-other-plugin" ) );
或者你可以这样做 here .
仅供引用,偏好设置在这里:
pathToWorkspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
关于eclipse - 我的 Eclipse 插件可以更改其他插件的首选项吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4587572/