Bug 25137 Paste enabled with deleted file on clipboard [ccp]
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/PasteResourcesFromClipboardAction.java
private void pasteFiles(Object target) {
    	String[] fileData= getClipboardFiles();
    	if (fileData == null)
    		return;
		IContainer container= convertToContainer(target);
		if (container == null)
			return;
				
		new CopyFilesAndFoldersOperation(getShell()).copyFiles(fileData, container);
    }
    
    private IContainer convertToContainer(Object target){
		if (target instanceof IContainer) 
			return (IContainer)target;
		try {
			return (IContainer)((IJavaElement)target).getCorrespondingResource();	
		} catch (JavaModelException e) {
			ExceptionHandler.handle(e, ReorgMessages.getString("PasteResourcesFromClipboardAction.error.title"), ReorgMessages.getString("PasteResourcesFromClipboardAction.error.message")); 
			return null;
		}
    }
	private void pasteResources(IStructuredSelection selection, IResource[] resourceData) {
		if (resourceData[0].getType() == IResource.PROJECT)
			pasteProject((IProject) resourceData[0]);
		else
			ReorgActionFactory.createDnDCopyAction(resourceData, getFirstSelectedResource(selection)).run();
	}
	
	private void pasteProject(IProject project){
		CopyProjectAction cpa= new CopyProjectAction(getShell());