Jan Eglinger

Results 251 comments of Jan Eglinger

Both files and directories would be stored in a `File` object on the Java side. The `FileListWidget` already allows for the `both` style: https://github.com/scijava/scijava-common/blob/560ad964a7a1e859edd4dbe4fc48d7d9e09523f2/src/main/java/org/scijava/widget/FileListWidget.java#L51-L56 To allow the same for single...

Well, keeping the constants in the classes where they're used would be consistent. As `FileWidget` defined `OPEN`, `SAVE` (both of which are "files-only") and `DIRECTORY`, this was not sufficient for...

The lossy conversion from `Dataset` (or, in general, from any `Object`) to `String` is currently preventing me from providing a useful batch processing for `Dataset`, `Img` etc.: any module accepting...

Knowledge about "lossiness" of a conversion would also be useful to allow choice of the best possible column type when post-processing module outputs, see https://github.com/scijava/scijava-table/issues/5. `DoubleType` -> `DoubleColumn` `double` ->...

What was the script run from the `TextEditor` to trigger this issue?

FWIW, I can reproduce the `ClassNotFoundException` (that presumably leads to this issue here) using the following Groovy script: ```groovy stackTrace = Thread.currentThread().getStackTrace() className = stackTrace[1].getClassName() println className clazz = Class.forName(className)...

@maarzt the syntax is **either** `@LogService` in a *comment* (i.e. `#` or `//` depending on the script language; that's the "old" syntax), **or** language-independently `#@ LogService` (without space between `#`...

I took a first attempt at implementing this on the [`script-imports-jan`](https://github.com/scijava/scijava-common/compare/script-imports...imagejan:script-imports-jan) branch. @ctrueden some open questions: * I now followed your suggestion implementing `ScriptInfo.setProperty(String, Object)` to be able to set...

@ctrueden wrote: > One thing you could do if you want to be more future-proof would be to invent a `ScriptImport` object that has a `scope()` attribute, and make the...

Further progress on the [`script-imports-jan`](https://github.com/scijava/scijava-common/compare/script-imports...imagejan:script-imports-jan) branch. I can now run the following Groovy script: ```groovy #@script(name="utils", menuPath="") #@output myfun myfun = { println 42 } ``` and then run it...