The visibleWhen of toolbar does not work well on Eclipse 4.2 [message #1059435] |
Sat, 18 May 2013 11:31 |
Matthew Liu Messages: 9 Registered: March 2013 |
Junior Member |
|
|
Hello all,
The following snippet works well for Eclipse 3.7.1, but fails to work on Eclipse 4.2.
Eclipse Modeling Tools
Version: Juno Service Release 2
Build id: 20130225-0426
Could anyone give a hint on this problem? Thanks!
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar id="com.toolbarID">
<command commandId="com.check" icon="icons/check.gif" id="com.check"
style="push" tooltip="Check">
<visibleWhen checkEnabled="false">
<with variable="selection">
<iterate ifEmpty="false">
<and>
<instanceof value="org.eclipse.core.internal.resources.File">
</instanceof>
<test property="org.eclipse.core.resources.name" value="*.mydsl">
</test>
</and>
</iterate>
</with>
</visibleWhen>
</command>
</toolbar>
</menuContribution>
</extension>
|
|
|
Powered by
FUDForum. Page generated in 0.02610 seconds