Bug 34769 [Navigator] F2/F5 actions not enabled/disabled properly when closing/opening project
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/PasteAction.java
}
		}
	}
	return false;
}
/**
 * Implementation of method defined on <code>IAction</code>.
 */
public void run() {
	
	ResourceTransfer resTransfer = ResourceTransfer.getInstance();
	IResource[] resourceData = (IResource[])clipboard.getContents(resTransfer);
	
	if (resourceData != null && resourceData.length > 0) {
		if (resourceData[0].getType() == IResource.PROJECT) {
			
			for (int i = 0; i < resourceData.length; i++) {
				CopyProjectOperation operation = new CopyProjectOperation(this.shell);
				operation.copyProject((IProject) resourceData[i]);
			}
		} else {
			
			IContainer container = getContainer();
				
			CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(this.shell);
			operation.copyResources(resourceData, container);
		}
		return;
	}