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
FileTransfer fileTransfer = FileTransfer.getInstance();
	String[] fileData = (String[])clipboard.getContents(fileTransfer);
	
	if (fileData != null) {
		
		IContainer container = getContainer();
				
		CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(this.shell);
		operation.copyFiles(fileData, container);
	}
}
/**
 * Returns the container to hold the pasted resources.
 */
private IContainer getContainer() {
	List selection = getSelectedResources();
	if (selection.get(0) instanceof IFile)
		return ((IFile)selection.get(0)).getParent();
	else 
		return (IContainer)selection.get(0);
}
/**
 * The <code>PasteAction</code> implementation of this
 * <code>SelectionListenerAction</code> method enables this action if 
 * a resource compatible with what is on the clipboard is selected.
 */
protected boolean updateSelection(IStructuredSelection selection) {
	if (!super.updateSelection(selection)) 
		return false;