[ImageJ-devel] Implicit script engine parameters?

Johannes Schindelin schindelin at wisc.edu
Mon Jun 16 12:26:03 CDT 2014


Hi Curtis,

On Mon, 16 Jun 2014, Johannes Schindelin wrote:

> I am facing a problem where I cannot pass macro options properly because
> the script service insists on handing the task to an individual thread
> in the thread pool of the thread service, and ImageJ 1.x can therefore
> no longer see its (home-brewn thread-local) macro options.
> 
> I fiddled a little with providing an extra input called
> "ij1.macro.options" but the ScriptModule figures that there is no input
> called "ij1.macro.options" and therefore the ScriptEngine never sees it.
> 
> Any thoughts that might help me solve this in a clean way? I really do
> not want to fudge some pseudo-solution that would "fix" it in the short
> run...

Thanks for taking the time to chat. And sorry for running off; I will be
online later in the evening.

The way I plan to address the issue is to special-case
"org.scijava.scripting.*" values in the input values passed to
ScriptService#run and add an API to the ScriptModule to get the values of
these settings. This should be clean and allow all the use cases we came
up with in our brief chat.

I should be able to complete that work and release scijava-common 2.24.0
before tomorrow morning.

Sounds good?

Ciao,
Dscho



More information about the ImageJ-devel mailing list