How to disable/hide a menu item [message #666413] |
Wed, 20 April 2011 11:26 |
Aivar Annamaa Messages: 33 Registered: July 2009 |
Member |
|
|
Id like to disable (or hide) a menu item of my plugin if program is in certain state. I tried implementing "isEnabled" in respective command's handler -- this would restrict executing the command (a message pops up saying "the chosen operation is not enabled") but the menu item is neither hidden nor disabled until it's clicked once.
I tried setting "checkEnabled"=true in menu definition under visibleWhen in plugin.xml, but it didn't help
I really hope it's possible to do it without using a MenuItemStateProviderNotifierService
[Updated on: Wed, 20 April 2011 11:45] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03471 seconds