Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » The visibleWhen of toolbar does not work well on Eclipse 4.2(Could anyone give some advices about this problem?)
The visibleWhen of toolbar does not work well on Eclipse 4.2 [message #1059435] Sat, 18 May 2013 11:31
Matthew Liu is currently offline Matthew LiuFriend
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>
Previous Topic:Kepler M7: @EventTopic works, but not @UIEventTopic
Next Topic:Selection service is triggered on focus for a treeviewer ?
Goto Forum:
  


Current Time: Fri Apr 19 20:39:36 GMT 2024

Powered by FUDForum. Page generated in 0.02939 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top