"Pratik Shah" <ppshah@xxxxxxxxxx> writes:
Yes, you'll have to write your own actions (in addition to the retarget
actions that you've already created) and add them to your Editor's
actionRegistry. Make sure these actions have the same IDs as the retarget
actions.
The copy-action is now called properly, but I can't get a hold of the
selection. getSelectedObjects() returns the empty list.
My editor's createActions() looks like this:
protected void createActions()
{
super.createActions();
IActionBars bars = getEditorSite().getActionBars();
ActionRegistry registry = getActionRegistry();
IAction action;
action = new CopyAction(this);
registry.registerAction(action);
bars.setGlobalActionHandler(CopyAction.ID, action);
[...]
}
I've tried following the logic-example, but to no avail.