scijava-common
scijava-common copied to clipboard
A plugin framework and application container with built-in extensibility mechanism :electric_plug:
Copied from @ctrueden's post in [this forum thread](https://forum.image.sc/t/fiji-from-command-line-crashes-when-offline/30364/7?u=frauzufall): > Certainly, adding support for --version, which simply prints `appService.getApp().getVersion()` and then quits, would be straightforward, and we should do it. It...
When running _File > Export > Image..._ today: ``` [ERROR] Module threw exception java.lang.NullPointerException at java.util.prefs.AbstractPreferences.put(AbstractPreferences.java:241) at org.scijava.prefs.DefaultPrefService$SmartPrefs.put(DefaultPrefService.java:393) at org.scijava.prefs.DefaultPrefService.put(DefaultPrefService.java:115) at org.scijava.module.DefaultModuleService.save(DefaultModuleService.java:306) at org.scijava.module.process.SaveInputsPreprocessor.saveValue(SaveInputsPreprocessor.java:77) at org.scijava.module.process.SaveInputsPreprocessor.process(SaveInputsPreprocessor.java:68) at org.scijava.module.ModuleRunner.preProcess(ModuleRunner.java:105) at org.scijava.module.ModuleRunner.run(ModuleRunner.java:157)...
@hinerm @ctrueden Following example fails with error message: "Context already injected ..." (sorry for using SCIFIO to demonstrate a SciJava Bug): ``` public static void main(String[] args) { final SCIFIO...
The `CacheService` interface contains a bogus implementation of the method `get(String key, Callable valueLoader)`, which never actually invokes the `valueLoader`. Probably, the default implementation should invoke `valueLoader.call()` iff a call...
Some modules are dynamic during initialization, but once the `initialize()` stuff has been done, parameters are fixed. Other modules want to be dynamic during callbacks (i.e., changes to parameter values),...
As proposed by @Stefan-Posch [on imagej-devel](http://imagej.net/pipermail/imagej-devel/2014-April/002038.html), we may be able to get rid of the concept of module initialization completely, in favor of only callbacks. When a preprocessor populates a...
When using a (script) parameter that was not persisted (yet), like: ``` #@ Boolean somethingNeverPersisted println somethingNeverPersisted ``` or ``` #@ Boolean (persist=false) somethingNeverPersisted println somethingNeverPersisted ``` ... and leaving...
EDIT: with an open tif-image (drag and drop) ij-version: 1.52i The following groovy script ```groovy #@UIService ui #@ImgPlus img ui.show(img) ``` ... works when in the configuration dialog `Menu >...
The following script: ```groovy [1,0.5] ``` returns an `ArrayList` that is (correctly) handled by `DisplayPostprocessor`: https://github.com/scijava/scijava-common/blob/821f89fc53bd2f3ffe75c14cd35eb74d5b4e545e/src/main/java/org/scijava/display/DisplayPostprocessor.java#L149-L156 The recursively-called private `handleOutput` method however doesn't handle numerical outputs, resulting in the following...
Currently we can ask `ConvertService` whether a certain conversion is supported via: ``` convertService.supports(sourceObject, targetType) ``` It would be great to have some possibility to differentiate what degree of conversion...