Bug 25137 Paste enabled with deleted file on clipboard [ccp]
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/PasteResourcesFromClipboardAction.java
cpa.selectionChanged(new StructuredSelection(project));
		if (! cpa.isEnabled())
			return;
		cpa.run();
	}
	
	private boolean canOperateOn(IStructuredSelection selection){		
		IResource[] resourceData= getClipboardResources();
		if (resourceData == null || resourceData.length == 0)
			return canPasteFiles(selection);
			
		if (ClipboardActionUtil.isOneOpenProject(resourceData))
			return true;
			
		if (selection.size() != 1) 
			return false;
				
		/*
		 * special case: if both source references and resources are in clipboard - disable this action
		 * if a compilation unit is selected.
		 * this is important in the case when a type is copied to the clipboard - we put also its compilation unit
		 */
		TypedSource[] typedSource= getClipboardSourceReference();
		if (selection.getFirstElement() instanceof ICompilationUnit && typedSource != null && typedSource.length != 0)
			return false;
		
		if (StructuredSelectionUtil.getResources(selection).length != 1)
			return false;
		
		if (resourceData == null)