Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » update a view in response to a popup menu action
update a view in response to a popup menu action [message #465898] Wed, 11 April 2007 21:38 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Issue with KeyBinding
Next Topic:Alternative for IViewDescriptor.getAccelerator in eclipse 3.2
Goto Forum:
  


Current Time: Wed Apr 24 21:08:25 GMT 2024

Powered by FUDForum. Page generated in 0.02779 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top