Script Parameter @File with style option does not work as described

Hi,

when I use the following script parameters I expected a little dialog that only allows to select png or jpg files. But instead is displays a dialog that allows me to select all types of files. What do I miss here?

#@ File(label = "Image File", style="extensions:png/jpg") referenceimage

1 Like

You are right the option does not seem functional :sweat_smile:
I don’t know if that was always the case, maybe @imagejan has an idea about that.
Otherwise it could be an option to open an issue in scijava-common repo, I think that’s were it belongs.

The extensions style attribute was added when Curtis and I added support for file array parameters (#@ File[] fileList) in this PR:

Unfortunately, we didn’t make it work on single File parameters at that time, it seems. And nobody tested it after the documentation was added by @stelfrich here until now.

Yes, could someone of you take care to add an issue here?

Thanks!

1 Like

I commented on this issue


but it did not re-open it :confused:

1 Like