}
}
public void actionPerformed(final ActionEvent event) {
AWorkspaceTreeNode[] targetNodes = getSelectedNodes(event);
WorkspaceTransferable transferable = null;
for (AWorkspaceTreeNode targetNode : targetNodes) {
if(targetNode instanceof IWorkspaceTransferableCreator) {
if(transferable == null) {
transferable = ((IWorkspaceTransferableCreator)targetNode).getTransferable();
}
else {
transferable.merge(((IWorkspaceTransferableCreator)targetNode).getTransferable());
}
}
}
if(transferable == null) {
return;
}
transferable.setAsCopy(false);
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(transferable, new CutClipboardOwner(transferable));
// AWorkspaceTreeNode parent = targetNode.getParent();
//
// targetNode.getModel().cutNodeFromParent(targetNode);