| How to use IElementUpdater [message #986253] |
Mon, 19 November 2012 11:15  |
Jan Krakora Messages: 402 Registered: December 2009 Location: Prague |
Senior Member |
|
|
Hi,
I have an editor with a context menu. This menu contains a command. I would like to change the command label in that menu based on the editor's selection, so my handler for that command implements IElementUpdater.
The problem is that the IElementUpdater.update() is not called until the handler is first executed. This is because eclipse wraps the handler into HandlerProxy object.
It swallows all update calling until the real handler is loaded (when first time executed).
How can I force the HandlerProxy load my handler?? Is there any other workaround for this?
Thanks
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01598 seconds