◐ Shell
clean mode source ↗

Skip FileListPreprocessor for autofill=false parameters by imagejan · Pull Request #423 · scijava/scijava-common

@imagejan

This commit changes the API of ModuleService and DefaultModuleService to include an optional parameter 'acrossTypes' that allows checking for solitary unresolved parameters within all inputs/outputs independent of their type, while maintaining the backwards compatible method signatures.

We can then replace some duplicated logic in helper methods of FilePreprocessor and FileListPreprocessor by a call to 'moduleService.getSingleInput()', which makes them respect an 'autoFill=false' parameter annotation and avoid calling uiService.chooseFile/chooseFiles for those parameters.

The intended behavior is verified by two new tests that, before this commit, are failing on their last assertion.