我的一个插件依赖于具有“验证”菜单项的WST。我尝试使用活动隐藏此菜单项,但到目前为止还没有成功。我有什么想法吗?
使用插件间谍,我很确定菜单是由org.eclipse.wst.validation.internal.ui.ValidationMenuAction提供的
这是我做的:
<extension
point="org.eclipse.ui.activities">
<activity
id="com.iwaysoftware.integration.tools.validationActivity"
name="validation activity">
</activity>
<activityPatternBinding
activityId="com.iwaysoftware.integration.tools.validationActivity"
pattern="org.eclipse.wst.validation.ui/org.eclipse.wst.validation.internal.ui.ValidationMenuAction">
</activityPatternBinding>
<category
id="com.iwaysoftware.integration.tools.validationCategory"
name="validation category">
</category>
<categoryActivityBinding
activityId="com.iwaysoftware.integration.tools.validationActivity"
categoryId="com.iwaysoftware.integration.tools.validationCategory">
</categoryActivityBinding>
答案 0 :(得分:0)
删除验证选项的最简单方法是从plugins文件夹中删除以下3个jar: org.eclipse.wst.validation.infopop_1.0.300.v201309101952.jar org.eclipse.wst.validation.ui_1.2.500.v201310231452.jar org.eclipse.wst.validation_1.2.600.v201501211647.jar