update a view in response to a popup menu action [message #465898] |
Wed, 11 April 2007 21:38 |
Eclipse User |
|
|
|
Originally posted by: mash_909.yahoo.co.uk
I have an action which is defined in plugin.xml to appear in a popup
context menu. AIUI, when the menu item is selected, the Action is
instantiated via reflection and run(IAction) is called.
I would like a View to update itself when this action completes. What
is the best way to achieve this? I guess the view would need to
register somehow for an event which the action would send upon completion?
|
|
|
Re: update a view in response to a popup menu action [message #465993 is a reply to message #465898] |
Thu, 12 April 2007 05:45 |
Eclipse User |
|
|
|
Originally posted by: narasimha.kamath.tcs.com
Hello,
At the end of your action class take the reference of your view class and call the update method.
Get the reference of the view using the following code
PlatfromUI.getWorkbech().getActiveWorkbenchWindow().getActiv ePage().findView(ViewId);
Hope this will solve your problem..
With Regards
Narasimha
|
|
|
Powered by
FUDForum. Page generated in 0.02779 seconds