* fix Linux uriList flavour issues
This commit is contained in:
parent
f1b59c0a4a
commit
8592525cfb
@ -132,7 +132,7 @@ public class FileTransferable implements Transferable {
|
||||
}
|
||||
|
||||
if (file == null || !file.exists()) {
|
||||
throw new FileNotFoundException(line);
|
||||
throw new FileNotFoundException(file != null ? file.getPath() : line);
|
||||
}
|
||||
|
||||
files.add(file);
|
||||
@ -140,8 +140,9 @@ public class FileTransferable implements Transferable {
|
||||
// URISyntaxException, IllegalArgumentException, FileNotFoundException, LinkageError, etc
|
||||
Logger.getLogger(FileTransferable.class.getName()).log(Level.WARNING, "Invalid file URI: " + line);
|
||||
}
|
||||
return files;
|
||||
}
|
||||
|
||||
return files;
|
||||
} else if (tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
|
||||
// file list flavor
|
||||
return (List<File>) tr.getTransferData(DataFlavor.javaFileListFlavor);
|
||||
|
@ -33,7 +33,7 @@ public abstract class TransferablePolicy {
|
||||
// just assume that the transferable will be accepted, accept will be called in importData again anyway
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
Logger.getLogger(getClass().getName()).log(Level.WARNING, e.toString(), e);
|
||||
Logger.getLogger(getClass().getName()).log(Level.WARNING, e.toString());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user