Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ModuleBatchProcessor UI #20

Open
imagejan opened this issue Apr 27, 2021 · 1 comment
Open

Improve ModuleBatchProcessor UI #20

imagejan opened this issue Apr 27, 2021 · 1 comment

Comments

@imagejan
Copy link
Member

When there's only one batchable parameter, ModuleBatchProcessor displays a multi-file chooser dialog via uiService.chooseFiles().

The (IMHO much nicer) [Swing]FileListWidget is only shown (together with a choice dropdown) when there are multiple parameters that could be iterated in batch.

We should instead default to always display the widget, even if only a single "batchable" input is present. We could probably annotate inputFileList with (autofill=false), provided we accurately handle this annotation, see scijava/scijava-common#420.

@Parameter(label = "Input files")
private File[] inputFileList;

@imagejan
Copy link
Member Author

/cc @tibuch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant