Trouble with visible when [message #655938] |
Wed, 23 February 2011 06:53  |
Eclipse User |
|
|
|
I have the following menu (trying to run on e4M5)
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="true"
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
id="de.eiswind.mango.client.menu.admin"
label="%administration"
tooltip="%administration">
<separator
name="additions"
visible="false">
</separator>
<visibleWhen>
<with
variable="de.eiswind.mango.client.core.user.isadmin">
<equals value="enabled">
</equals>
</with>
</visibleWhen>
</menu>
</menuContribution>
<menuContribution
allPopups="false"
locationURI="menu:de.eiswind.mango.client.menu.admin">
<command
commandId="de.eiswind.mango.command.openvaluelist"
id="de.eiswind.mango.menu.openvaluelistview"
label="%valueLists"
style="push"
tooltip="%valueLists">
<visibleWhen>
<with
variable="de.eiswind.mango.client.core.user.isadmin">
<equals value="enabled">
</equals>
</with>
</visibleWhen>
</command>
</menuContribution>
However no matter if the variable is enabled or not the menu is always shown and the command is never visible. I had sourceProviders to disable the menus based on user rights, but i cannot get it to work on e4. Any hints on this ?
Regards Thomas
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03749 seconds