if (targetContainer instanceof IContainer) {
action.setTarget((IContainer) targetContainer);
} else if (targetContainer instanceof IResource) {
action.setTarget(((IResource) targetContainer).getParent());
}
action.run((Action) null);
}
private void handleDropCopy(final Object target) throws ModelException,
InvocationTargetException, InterruptedException {
List elements = ((IStructuredSelection) getSelection()).toList();