Command API and Global actions [message #335223] |
Thu, 26 March 2009 10:44  |
Eclipse User |
|
|
|
Hi There,
I would like to request some direction on how to override the standard
COPY, CUT, PASTE actions using the command API? (Declarative form).
My declaration below doesn't activate the Action for an Editor, which is
an EMF Editor BTW. The EMF Editor registers it's action with
setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction);
through an ActionBar contributor.
Could this be a handler conflict?
Do I need to re-declare the paste command or is the handler sufficient?
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.netxforge.networkdata.addon.PasteHandler"
commandId="org.eclipse.ui.edit.paste">
<activeWhen>
<with
variable="activeEditor">
<equals
value="com.MyEditor">
</equals>
</with></activeWhen>
</handler>
</extension>
Thanks Christophe
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07220 seconds