There are two conditions for a popup menu to appear, I am using the <instanceof..> inside a <visibleWhen> tag in my plugin.xml? I have used the <or>...<instance of>...</or> but It doesn’t seem to work. Below is the code
<visibleWhen>
<with variable="selection">
<iterate ifEmpty="false" operator="or">
<instanceof value="org.eclipse.core.resources.IFolder"/>
<test property="org.eclipse.core.resources.projectNature"
value="org.eclipse.wst.jsdt.core.jsNature"/>
<or>
<instanceof value="org.eclipse.core.resources.IProject"/>
<test property="org.eclipse.core.resources.projectNature"
value="org.eclipse.wst.jsdt.core.jsNature"/>
</or>
</iterate>
</with>
</visibleWhen>
Any inputs would be really helpful !
Thanks,
Abbas
I think you are using
<or>wrong (see http://wiki.eclipse.org/Command_Core_Expressions):