NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1675 (closed defect: fixed)

Opened 2013-03-14T10:15:34-05:00

Last modified 2013-04-16T16:50:00-05:00

IOService enhancement needed for drag and drop

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: imagej2-b7-ndim-data
Component: I/O Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #860

Description (last modified by bdezonia)

The drag and drop code (on drag-and-drop branch) treats all Files unclaimed by any handler as an image. This can result in exception errors. Ideally the ImageFileDragAndDropHandler would ask the IOService if the given file is an image file before accepting it. The IOService would need to be able to figure this out in a timely fashion. Maybe just by file extension. The service could have a default mode (extension checking only) and a thorough mode (try opening file and reading header if needed).

Change History

comment:1 Changed 2013-03-14T10:18:27-05:00 by bdezonia

  • Description modified

comment:2 Changed 2013-03-20T11:38:26-05:00 by bdezonia

  • Blocking 1712 added

comment:3 Changed 2013-04-15T10:00:10-05:00 by bdezonia

  • Owner changed from hinerm to curtis
  • Status changed from new to reviewing

ctrueden is working on DND and this problem right now. assigning to him.

comment:4 Changed 2013-04-15T10:00:28-05:00 by bdezonia

  • Milestone changed from imagej2-unscheduled to imagej2-b7-ndim-data

comment:5 Changed 2013-04-15T10:01:40-05:00 by bdezonia

  • Blocking 860 added; 1712 removed

comment:6 Changed 2013-04-15T10:02:50-05:00 by curtis

  • Status changed from reviewing to accepted

This is done on the  drag-and-drop branch. (Specifically, it is addressed in commit 4fef79c0.) When that branch is merged, I will close this ticket. There are still a few bugs to iron out first, though.

comment:7 Changed 2013-04-16T16:50:00-05:00 by curtis

  • Status changed from accepted to closed
  • Resolution set to fixed

Branch merged in 9f20b3ec.