Ticket #851 (closed defect: duplicate)
Drag and Drop unsupported image file results in exception
| Reported by: | bdezonia | Owned by: | bdezonia |
|---|---|---|---|
| Priority: | major | Milestone: | imagej-2.0.0-beta2 |
| Component: | ij-io | Version: | |
| Severity: | serious | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: |
Description
Drag and drop has been implemented which allows one to drop a file from Finder onto the status area or toolbar area which will then be opened by IJ2.
(note this bug might have a duplicate ticket - I thought for sure I had reported it)
DnD works fairly well but if you drag some unsupported type (such as a PDF) you get an exception in the console window:
Caused by: loci.formats.UnknownFormatException: Unknown file format: /Users/bdezonia/Desktop/pay-employee-withholding.pdf
at loci.formats.ImageReader.getReader(ImageReader.java:179)
at loci.formats.ImageReader.setId(ImageReader.java:677)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:488)
at loci.formats.ChannelFiller.setId(ChannelFiller.java:249)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:488)
at loci.formats.ChannelSeparator.setId(ChannelSeparator.java:257)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:488)
at net.imglib2.io.ImgOpener.createReader(ImgOpener.java:436)
at net.imglib2.io.ImgOpener.initializeReader(ImgOpener.java:494)
at net.imglib2.io.ImgOpener.openImg(ImgOpener.java:183)

This bug should be addressed when ticket #860 is resolved. Suspending until then.