Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IViewActionDelegate and doubleClick
IViewActionDelegate and doubleClick [message #461985] Fri, 19 January 2007 18:02 Go to next message
Przemyslaw Rudzki is currently offline Przemyslaw RudzkiFriend
Messages: 34
Registered: July 2009
Member
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 18:47 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 Apr 26 06:01:09 GMT 2024

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

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

Back to the top