| [news.eclipse.tools.gef] Re: implementing cut/copy/paste |
"CL [dnoyeb] Gilbert" <Lamont_Gilbert@xxxxxxxxxxxxxxxxx> writes:
getSelectedObjects should never return the empty list.
Well, it does.
After some investigation, it appears that CopyAction's update() method is never called, and thus the selection field is never set. I wonder why.
I'll keep investigating.
protected void updateActions(List actionIds)
{
ActionRegistry registry = getActionRegistry();
Iterator iter = actionIds.iterator();
while (iter.hasNext()) {
IAction action = registry.getAction(iter.next());
if (action instanceof UpdateAction)
((UpdateAction)action).update();
}
}/Jesper