[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] How to associate global actions (copy, rename, etc.) with handler via plugin
|
Hi,
As you possibly know Eclipse 3.3 comes with new features for managing
actions with org.eclipse.ui.menus extension point. You can read more about
it on
http://www.ibm.com/developerworks/opensource/library/os-eclipse-3.3menu/.
I tried to work with that and even it seems pretty complicated it is an
generic way to manipulate with actions and it is pretty sure that it would
become a common and recommended way.
But, I really have not the idea how to associate global actions provided by
ActionFactory such as Copy, Rename, etc. with some handler via plugin.xml.
Of course it still can be done from an ViewPart or EditPat calling
ViewSite.getActionBars.setGloabalActionHandler(String actionId, IAction
action), but it is is not a declarative way.
Please, help to find out how to do that.
Regards,
DL