org.eclipse.core.expressions.definitions problem [message #633421] |
Sun, 17 October 2010 17:44 |
ash Messages: 142 Registered: July 2010 |
Senior Member |
|
|
Hi all,
i want some context menu option to be visble when any row in table is selected . and removed when no row are selected. as per expersion this its working fine.
But
if i use same expresion used for view menu/applcation main menu to enable/disable menu option... the menu option are not enabling /disabling it will in disable mode only
can any 1 tell wht might be the wrong.
<extension
point="org.eclipse.core.expressions.definitions">
<definition
id="oneElementSelected">
<with
variable="activeMenuSelection">
<count
value="1">
</count>
</with>
</definition>
</extension>
<handler
class="com.xxxxx.ui.command.EditCmdHandler"
commandId="com.xxxxt.edit.mgr">
<enabledWhen>
<reference
definitionId="oneElementSelected">
</reference>
</enabledWhen>
</handler>
thanks
ashok
|
|
|
Powered by
FUDForum. Page generated in 0.02435 seconds