Login  Register

Re: Version Detection?

Posted by Wayne Rasband on Oct 06, 2007; 8:40pm
URL: http://imagej.273.s1.nabble.com/Version-Detection-tp3698245p3698252.html

Use the IJ.getVersion() method to get the ImageJ version as a string  
(e.g., "1.30f") or add a line like this

      if (IJ.versionLessThan("1.39f")) return;

which will abort the plugin and displays an error message if the  
version is not 1.39f or later.

In a macro, use the getVersion() and requires("1.39j") functions.

-wayne


On Oct 6, 2007, at 2:15 PM, Andy Puckett wrote:

> Can someone tell me if there is a java routine that will detect
> which version of ImageJ is being run?  I would like to
> incorporate this into a plugin.
>
> Thanks,
> Andy