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 #853 (closed defect: duplicate)

Opened 2011-10-31T14:57:40-05:00

Last modified 2013-04-18T17:13:08-05:00

Drag and Drop should support all types IJ1 does

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b10-compatibility
Component: Core Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1821


I think IJ1 can handle the drag/drop of luts and other files. Currently IJ2 only supports images. Find out what IJ1 supports and extend IJ2 to do so as well.

Change History

comment:1 Changed 2011-11-02T12:44:16-05:00 by bdezonia

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

comment:2 Changed 2011-11-02T12:44:55-05:00 by bdezonia

  • Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta2

comment:3 Changed 2012-02-26T21:48:47-06:00 by curtis

  • Blocking 860 added

comment:4 Changed 2012-02-26T21:49:51-06:00 by curtis

  • Blocking 860 removed

comment:4 Changed 2012-02-26T21:50:18-06:00 by curtis

  • Blocking 860 added

comment:5 Changed 2012-05-14T11:00:00-05:00 by bdezonia

  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4

comment:6 Changed 2012-09-10T09:12:43-05:00 by bdezonia

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5

comment:7 Changed 2013-03-13T14:45:36-05:00 by bdezonia

Now supporting .lut, .txt, and image file formats of scifio (on the drag-and-drop branch)

comment:8 Changed 2013-03-14T10:03:22-05:00 by bdezonia

  • Summary changed from Drag and Drop enhancement to Drag and Drop should support all types IJ1 does

comment:9 Changed 2013-03-14T15:13:25-05:00 by bdezonia

The current code on the drag-and-drop branch supports all image types of scifio, .lut files, and .txt files.

Looking at IJ1's DragAndDrop code I can see it supports some things we don't do at the moment:

1) it checks if a given File is a directory and if it does it asks whether to open all files in dir as a stack. If no it opens each file in directory as a separate image. Maybe scifio can be extended to handle directories in this way? If not we can write code that does similar things. Currently our file list handling always opens them as separate images.

2) it opens .luts. we have this handled right now

3) it opens the following files as text: .txt, .ijm, .java, .js, .html, .htm, .bsh, and files with no extension. we have this handled right now.

4) it opens as images its expected file types (gif, tif, png, bmp, etc.). we have this handled right now.

5) it installs plugins when given .jar or .class files

6) it opens .roi files as a region of interest and applies to active image (or a dummy image if none exists)

7) it opens .ojj files (and files whose 1st three bytes are ojj) as ObjectJ projects (using the ObjectJ_ plugin)

8) it opens .xls and .csv as ResultsTables

9) it opens .avi files as an image stack

Last edited 2013-03-14T15:42:20-05:00 by bdezonia

comment:10 Changed 2013-04-16T16:48:54-05:00 by curtis

  • Status changed from new to reviewing

Thanks for the list, bdezonia. Can you please file a new feature ticket for drag-and-drop improvements, as well as separate tickets for the items above, for imagej2-b10-compatibility?

The following items from your list above are currently not handled on the latest master branch: 1, 3, 5, 6, 7, 8. (In other words, items 2, 4 and 9 are handled now.) Adding support for 3 again would probably be fairly straightforward, but maybe not 100% trivial, so it can wait till b10.

Once we have the new tickets, we can close this one out (probably as "duplicate").

comment:11 Changed 2013-04-16T17:01:18-05:00 by curtis

  • Blocking 1821 added; 860 removed
  • Milestone changed from imagej2-b7-ndim-data to imagej2-b10-compatibility

I am migrating this ticket to the b10-compatibility milestone (feature ticket #1821). However, it would still be good to split the list above into separate tickets, and then close this one as a duplicate.

comment:12 Changed 2013-04-18T17:13:08-05:00 by bdezonia

  • Status changed from reviewing to closed
  • Resolution set to duplicate

#1821 is the feature ticket of a number of drag and drop limitations. The above text encapsulated in those tickets. Closing as duplicate.