Eclipse:如何以编程方式获取启动首选项

时间:2015-11-19 19:09:19

标签: eclipse eclipse-plugin

该插件没有激活器。它需要访问在Eclipse上定义的Eclipse IDE的首选项值 - >偏好 - >运行/调试 - >启动页面。

如何以编程方式完成?

1 个答案:

答案 0 :(得分:2)

您可以使用以下内容:

IPreferenceStore store = new ScopedPreferenceStore(InstanceScope.INSTANCE, IDebugUIConstants.PLUGIN_ID);

store.getBoolean(IDebugUIConstants.PREF_BUILD_BEFORE_LAUNCH);

... other preferences listed in IDebugUIConstants

并非IDebugUIConstants中列出了启动页面上的所有首选项。其他被认为是内部的。

相关问题