Jan Eglinger
Jan Eglinger
I wonder if this line is correct: https://github.com/scijava/scijava-common/blob/a5993b3a9cd9c634881b4c30c47ac95884ff451d/src/main/java/org/scijava/script/run/ScriptCodeRunner.java#L101-L101 If we get a `String`, do we want to interpret it as a filename here? What if the `String` contains the actual...
Just for some context on pre- and post-processing, please also see the open issues #191 and #317.
I did some preliminary work on this in [`imagejan/object-manager@wip`](https://github.com/imagejan/object-manager/tree/008e1fc3e877e342d652a3110f043ba5de8799e2) (merely a proof of concept), but likely won't have time to pursue it a lot more, so I thought I'll at...
In particular, it would be useful if you can provide a `java.io.FileFilter` or `java.io.FileNameFilter`. For scripting in particular, we might provide shortcuts for `org.apache.commons.io.filefilter.WildcardFilter` and `org.apache.commons.io.filefilter.RegexFileFilter`. Do we have to...
With https://github.com/scijava/scijava-ui-swing/commit/73281ecafabaef8e4eee2a75bda339e90cf86507 (see also https://github.com/scijava/scijava-ui-swing/pull/27), filtering by file extension is now possible with the following syntax: ``` #@ File (style = "open, extensions:xls/xlsx") inputFile ``` So this is implemented at...
Seeing my comment above, this must have worked at the time of writing. If it doesn't now, it's a regression. I'll reopen the issue.
The filter is derived from the `widgetStyle` parameter [here](https://github.com/scijava/scijava-ui-swing/blob/557d79230d0f70eaae8573e242f0a02c66b07d62/src/main/java/org/scijava/ui/swing/widget/SwingFileListWidget.java#L188-L189), and then handed over to the `chooseFiles()` method. As I wrote above, it *was* working at the time when we implemented...
Thanks @LauLauThom for testing. Note that the `style` attribute also has some other flaws currently: https://github.com/scijava/scijava-common/issues/333 I just never got around to tackle these in a robust way (with adding...
As we have: https://github.com/scijava/scijava-common/blob/dc8ea6d88071d02740ec8e707c9e2cd2cc1ce53c/src/main/java/org/scijava/script/ScriptService.java#L124-L128 already, we might want to keep it consistent and overload the `getScript` method like this: ```java /** * Creates the {@link ScriptInfo} metadata for the provided...
See https://github.com/scifio/scifio/pull/402 and https://github.com/scifio/scifio/pull/443.