Commands and Context Menus [message #335327] |
Wed, 01 April 2009 11:59  |
Eclipse User |
|
|
|
I am using the eclipse commands and menus to generate a context menu.
This works fine.
The context menu is dynamic, so I have implemented the appropriate classes
derived from AbstractHandler, this is also fine.
The problem is that based on the user right click selection I want to
remove items from the context menu. Not disable, but completely remove.
The command expressions do not seem to be sufficient, since I can only use
a selection event variable. I am using a generic object as the selection,
and I need to examine a member variable to check if the context item
should be displayed. No way to do this with expressions that I have found.
So, is there any way from the updateElement() method in AbstractHandler to
really remove a context menu item?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02613 seconds