scijava / scijava-ui-swing

SciJava UI components for Java Swing.
BSD 2-Clause "Simplified" License
7 stars 11 forks source link

Allow showing file list widget instead of file chooser #69

Open imagejan opened 2 years ago

imagejan commented 2 years ago

When using a single File[] parameter like:

#@ File[] (style="extensions:tif/tiff/ims") files

.. we always show a file chooser dialog using chooseFiles. Only when a second unrelated parameter is added, a file list widget is shown in a generated input dialog:

#@ File[] (style="extensions:tif/tiff/ims") files
#@ String (required=false) ignoreThis

There should be a possiblity to get an input dialog with the file list widget, without the need to add secondary parameters.

(I thought I had opened a ticket about this long ago, but I couldn't find it, so here it is.)

imagesc-bot commented 2 years ago

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/drag-and-drop-file-list/65646/3

ctrueden commented 2 years ago

Yeah, something like autofill=false, but for the FilePreprocessor and FileListPreprocessor to know they shouldn't do this shortcut of popping the file chooser dialog directly. I also remember you mentioning this before, @imagejan, but don't have time to dig for existing issues right now, sorry.

imagejan commented 2 years ago

I found the previous mentions here:

https://github.com/scijava/batch-processor/issues/20 https://github.com/scijava/scijava-common/issues/420

So now we have an open issue in each of the relevant repositories 🤷

Edit: And there's https://github.com/scijava/scijava-common/pull/423 already 🚀