[ImageJ-devel] how to get current ImageJ context in ImageJ 2

Johannes Schindelin Johannes.Schindelin at gmx.de
Tue Apr 10 14:25:31 CDT 2012


Hi,

On Tue, 10 Apr 2012, Albert Cardona wrote:

> This below is nice: no more global variables.
> Does this mean that a scripting interpreter will have to declare,
> internally, a variable that points to the ImageJ context? Otherwise
> the script cannot know where to reach for the currently active
> Dataset, or get the list of existing, open Dataset instances.

Dude. We're still struggling with other things... Scripting is slated for
the second half of the beta2 phase. See our timeline.

But yes, in general we will try to have such references, with a fallback
to ImageJ.getContext() (the result of which may depend on the thread it
was called from).

Ciao,
Johannes



More information about the ImageJ-devel mailing list