Login  Register

Re: Javascript in Fiji does not work anymore

Posted by Jan Eglinger on Jun 19, 2014; 2:49pm
URL: http://imagej.273.s1.nabble.com/Javascript-in-Fiji-does-not-work-anymore-tp5008314p5008319.html

Hi all,

On 19.06.2014, 4:22 PM, Jan Eglinger wrote:
> I just discovered that there is an option to switch the auto-imports
> back on: in Fiji's script editor, go to:
>
> *Edit > Auto-import (deprecated)*
>

For the record:
The auto-import was adopted from the Fiji script editor to the ImageJ
script editor in these two commits (including very informative commit
messages by Johannes Schindelin :):

https://github.com/imagej/imagej-ui-swing/commit/094a3ac5
https://github.com/imagej/imagej-ui-swing/commit/d48a482f

>
> In any case, it might be a good idea to not trust the auto-imports but
> import the classes you need explicitly:
>
>      importClass(Packages.ij.IJ);
>      importClass(Packages.ij.gui.GenericDialog);
>

Cheers,
Jan

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html