Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IViewActionDelegate and doubleClick
IViewActionDelegate and doubleClick [message #461985] Fri, 19 January 2007 13:02 Go to next message
Eclipse UserFriend
Hi,

Is there any way to call the IViewActionDelegate that has been contributed via org.eclipse.ui.viewActions extension point?

I would like to add doubleClick event listener on this TableViewer that is contained in the view for which action delegates has been declared for.

I was thinking about using the ContributionItem from ActionBars i.e getViewSite().getActionBars().getToolBarManager().find("my.id "), but I am not sure if it is doable?

Maybe use command framework?

Any suggestions?

/p
Re: IViewActionDelegate and doubleClick [message #461986 is a reply to message #461985] Fri, 19 January 2007 13:47 Go to previous message
Eclipse UserFriend
you could possible track down the action proxy through the view site
IActionBars. running that should run your view action delegate.


In 3.1 and 3.2 the more correct approach would be to create a command,
and use definitionId in the viewActions <action/> element to link it
together.

Then executing that command id should execute the IViewActionDelegate.

Later,
PW
Previous Topic:to remove icons coming with package explorer
Next Topic:Handle events happend in sub composites
Goto Forum:
  


Current Time: Fri Aug 29 19:20:12 EDT 2025

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

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

Back to the top