Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how to get an Action created in another view?
how to get an Action created in another view? [message #327254] Mon, 14 April 2008 18:03 Go to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

Hi,

I'd like to get an Action that is defined in another View. I have the
actions ID, but I have no idea how to get the Action associated with it.
Is this possible?

Thanks,

--
Derek
Re: how to get an Action created in another view? [message #327315 is a reply to message #327254] Tue, 15 April 2008 13:48 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

you could track down a global action using API:
viewPart.getViewSite().getActionBars().getGlobalActionHandle r(actionId);

This is useful for actions targetted at the global RetargetActions
(COPY, PASTE, REFRESH, etc)

If you mean an IAction that you simply added in your view
createPartControl(*), that you can't get to without tracking it down
manually.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Activator for plugin is invalid
Next Topic:[Databinding] EMF Observables / Commands
Goto Forum:
  


Current Time: Fri Oct 18 13:39:02 GMT 2024

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

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

Back to the top