该插件没有激活器。它需要访问在Eclipse上定义的Eclipse IDE的首选项值 - >偏好 - >运行/调试 - >启动页面。
如何以编程方式完成?
答案 0 :(得分:2)
您可以使用以下内容:
IPreferenceStore store = new ScopedPreferenceStore(InstanceScope.INSTANCE, IDebugUIConstants.PLUGIN_ID);
store.getBoolean(IDebugUIConstants.PREF_BUILD_BEFORE_LAUNCH);
... other preferences listed in IDebugUIConstants
并非IDebugUIConstants
中列出了启动页面上的所有首选项。其他被认为是内部的。