copy from native file browser fixed

This commit is contained in:
anna
2010-10-08 15:30:19 +04:00
parent ca99ae848e
commit 3cea8877b4
@@ -96,14 +96,16 @@ class ProjectViewDropTarget implements DnDNativeTarget {
final int dropAction = aEvent.getAction().getActionId();
if (sourceNodes == null) {
if (aEvent.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
List<File> fileList;
Object fileList;
try {
fileList = (List<File>)aEvent.getTransferData(DataFlavor.javaFileListFlavor);
fileList = ((EventInfo)attached).getTransferable().getTransferData(DataFlavor.javaFileListFlavor);
}
catch (Exception e) {
return;
}
getDropHandler(dropAction).doDropFiles(fileList, targetNode);
if (fileList instanceof List) {
getDropHandler(dropAction).doDropFiles((List<File>)fileList, targetNode);
}
}
}
else {