Bug 16271 copy action must talk to paste action
problem: select a file ctrl+c ctrl+v (without changing selection) nothing happens beacuse nobody told the paste action that stuff is available in the clipboard (there're no callback here) see the plaftorm CopyAction on how to solve it (should be not difficult) marking as major - does not allow you to do the usual thing of hitting ctlr+c/ctlr+c in a row
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/CutSourceReferencesToClipboardAction.java
fDelete= new DeleteSourceReferencesAction(site);
		update(getSelection());
	}
	
	protected void perform(IStructuredSelection selection) throws CoreException {
		fCopy.perform(selection);
		fDelete.perform(selection);
	}
	protected void selectionChanged(IStructuredSelection selection) {
		/*
		 * cannot cut top-level types. this deltes the cu and then you cannot paste because the cu is gone. 
		 */
		if (containsTopLevelTypes(selection)){
			setEnabled(false);
			return;
		}	
		fCopy.selectionChanged(selection);
		fDelete.selectionChanged(selection);
		setEnabled(fCopy.isEnabled() && fDelete.isEnabled());
	}
	private static boolean containsTopLevelTypes(IStructuredSelection selection) {
		for (Iterator iter = selection.iterator(); iter.hasNext();) {
			Object each= iter.next();
			if ((each instanceof IType) && ((IType)each).getDeclaringType() == null)
				return true;
		}
		return false;
	}
}