|
|
|
Re: Retarget Action and Handler [message #329140 is a reply to message #329034] |
Fri, 13 June 2008 16:58 |
|
Marco Lehmann wrote:
> Hello Paul,
>
> that's a pity. After some research, a wrapped (via delegate)
> org.eclipse.ui.internal.actions.CommandAction did the trick.
> Is there hope for better "legacy" support?
if someone writes it, sure :-) But while there is support on the
command side for dealing with actions, there is limited opportunity to
do the same thing in the action code (it is much older, and hence more
stable/brittle).
There's hope for migration off of the legacy dependencies, for example
in 3.4 the WorkbenchActionBuilder doesn't use the RetargetActions from
ActionFactory (which remain available in ActionFactory for API reasons).
Instead a CommandContributionItem is used for most of the
RetargetAction menu items (like cut, copy, paste, print, etc), which
responds to the command enabled state (where it is a true handler or an
action wrapped in a handler-bridge). All that to say
CommandContributionItems work with actions and handlers, but
RetargetActions don't work nearly as well with commands.
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
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
Powered by
FUDForum. Page generated in 0.02863 seconds