Skip to content

Commit a5650a7

Browse files
authored
Merge pull request #138 from Vodorok/plugin_xml
More robust Add CodeChecker nature menu item handling.
2 parents 9408745 + d80da43 commit a5650a7

File tree

1 file changed

+16
-5
lines changed
  • eclipse-plugin/eclipse/cc.codechecker.eclipse.plugin

1 file changed

+16
-5
lines changed

eclipse-plugin/eclipse/cc.codechecker.eclipse.plugin/plugin.xml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,24 @@
3737
label="Add CodeChecker Nature"
3838
style="push">
3939
<visibleWhen>
40-
<not>
4140
<iterate operator="and">
42-
<test property="org.eclipse.core.resources.projectNature"
43-
value="cc.codechecker.plugin.CodeCheckerNature">
44-
</test>
41+
<not>
42+
<test property="org.eclipse.core.resources.projectNature"
43+
value="cc.codechecker.plugin.CodeCheckerNature"/>
44+
</not>
45+
<or>
46+
<test property="org.eclipse.core.resources.projectNature"
47+
value="org.eclipse.cdt.core.cnature"/>
48+
<test property="org.eclipse.core.resources.projectNature"
49+
value="org.eclipse.cdt.core.ccnature"/>
50+
<test property="org.eclipse.core.resources.projectNature"
51+
value="org.eclipse.cdt.managedbuilder.core.managedBuildNature"/>
52+
<test property="org.eclipse.core.resources.projectNature"
53+
value="org.eclipse.cdt.managedbuilder.core.ScannerConfigNature"/>
54+
<test property="org.eclipse.core.resources.projectNature"
55+
value="org.eclipse.cdt.autotools.core.autotoolsNatureV2"/>
56+
</or>
4557
</iterate>
46-
</not>
4758
</visibleWhen>
4859
</command>
4960
</menuContribution>

0 commit comments

Comments
 (0)