Get corresponding view in AbstractHandler.execute() [message #552438] |
Thu, 12 August 2010 05:15  |
Eclipse User |
|
|
|
Hi,
I defined a class derived from AbstractHandler. This handler is added in a views toolbar. If I activate the toolbar entry, the execute method of the handler is invoked.
How do I get the view instance or id for which the handler is invoked? There can be multiple views in which the handler can be executed. I tried the HandlerUtil.getActivePart(), but the problem here is, that the view is getting active after handlers execute method is invoked. So if e. g. an editor has the focus and the user clicks directly the toolbar icon, the active part is not the view in which the handler icon was clicked, but the editor.
Has someone an idea?
Regards,
Oliver
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03952 seconds