Ticket #853 (closed defect: duplicate)

Opened 7 years ago

Last modified 6 years ago

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

Description

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 7 years ago by bdezonia

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

comment:2 Changed 7 years ago by bdezonia

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

comment:3 Changed 7 years ago by curtis

  • Blocking 860 added

comment:4 Changed 7 years ago by curtis

  • Blocking 860 removed

comment:4 Changed 7 years ago by curtis

  • Blocking 860 added

comment:5 Changed 7 years ago by bdezonia

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

comment:6 Changed 7 years ago by bdezonia

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

comment:7 Changed 6 years ago by bdezonia

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

comment:8 Changed 6 years ago by bdezonia

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

comment:9 Changed 6 years ago 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 6 years ago by bdezonia (previous) (diff)

comment:10 Changed 6 years ago 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 6 years ago 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 6 years ago 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.

Note: See TracTickets for help on using tickets.