Bug 29491 [DND] Check NavigatorDragAdapter use of IResource.getLocation
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/CopyAction.java
clipboard.setContents(
			new Object[]{
				resources, 
				fileNames, 
				names}, 
			new Transfer[]{
				ResourceTransfer.getInstance(), 
				FileTransfer.getInstance(), 
				TextTransfer.getInstance()});
	} catch (SWTError e){
		if (e.code != DND.ERROR_CANNOT_SET_CLIPBOARD)
			throw e;
		if (MessageDialog.openQuestion(shell, WorkbenchMessages.getString("CopyToClipboardProblemDialog.title"), WorkbenchMessages.getString("CopyToClipboardProblemDialog.message"))) 
			setClipboard(resources, fileNames, names);
	}	
}
/**
 * The <code>CopyAction</code> implementation of this
 * <code>SelectionListenerAction</code> method enables this action if 
 * one or more resources of compatible types are selected.
 */
protected boolean updateSelection(IStructuredSelection selection) {
	if (!super.updateSelection(selection))
		return false;
	
	if (getSelectedNonResources().size() > 0) 
		return false;
	List selectedResources = getSelectedResources();
	if (selectedResources.size() == 0)