Bug 16075 Strange Cut/Copy and Paste behavior
I was trying to move to compilation units from one project to another in the Java Browsing perspective. I selected them in the types brwoser and selected Cut. I then tried to Paste them in another package by selecting the target package in the packages view but paste wasn't enabled. I tried to paste them in the navigator and was told that the resource no longer existed. After restoring the files from local history, I chose Copy instead and Pasted into the new package. I had two entries for each file pasted.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/CutSourceReferencesToClipboardAction.java
package org.eclipse.jdt.internal.ui.reorg;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.ui.IWorkbenchSite;
import org.eclipse.jdt.internal.corext.refactoring.Assert;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jdt.ui.actions.SelectionDispatchAction;
public class CutSourceReferencesToClipboardAction extends SourceReferenceAction {
	CopySourceReferencesToClipboardAction fCopy;
	DeleteSourceReferencesAction fDelete;
	
	protected CutSourceReferencesToClipboardAction(IWorkbenchSite site, Clipboard clipboard) {
		super(site);
		setText(ReorgMessages.getString("CutSourceReferencesToClipboardAction.cut")); 
		fCopy= new CopySourceReferencesToClipboardAction(site, clipboard);
		fDelete= new DeleteSourceReferencesAction(site);
		update(getSelection());
	}
	
	protected void perform(IStructuredSelection selection) throws CoreException {
		fCopy.perform(selection);
		fDelete.perform(selection);
	}
	protected void selectionChanged(IStructuredSelection selection) {
		fCopy.selectionChanged(selection);
		fDelete.selectionChanged(selection);
		setEnabled(fCopy.isEnabled() && fDelete.isEnabled());
	}
}