Skip to main content



      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 14: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 09:48 Go to previous message
Eclipse UserFriend
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: Tue Mar 18 00:35:35 EDT 2025

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

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

Back to the top