Bug 35796 Drag and drop freezes Windows explorer(modal dialog problem) [dnd]
- Close all programs(important) - Create an empty resource project - Select any file and drop it into a folder in the project - Bring the Windows explorer to front so that it covers the middle of the screen, but that the folder in the project remains visible. Make sure there is only *one* Windows explorer window running(important). - Drag and drop the same file to the same place - The Windows explorer window now appears to be frozen. *Behind* the Windows explorer there is a modal requester asking whether the file should be replaced. Click in the Eclipse window, close requester, and Windows explorer now works again. No exceptions in log.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java
}
			
		return;	
	}
	public void drop(Object dropTarget, DropTargetEvent event) {
		int operation= event.detail;
		
		event.detail= DND.DROP_NONE;
		Object data= event.data;
		if (data == null || operation != DND.DROP_COPY)
			return;
			
		IContainer target= null;
		if (dropTarget instanceof IContainer) {
			target= (IContainer)dropTarget;
		} else {
			try {
				target= (IContainer)((IJavaElement)dropTarget).getCorrespondingResource();	
			} catch (JavaModelException e) {
			}
		}
		if (target == null)
			return;
		
		new CopyFilesAndFoldersOperation(JavaPlugin.getActiveWorkbenchShell()).copyFiles((String[])data, target);
		
		event.detail= DND.DROP_COPY;
	}
}