Re: How to determine availability of tools and plugins
Posted by Stein Rørvik on URL: http://imagej.273.s1.nabble.com/How-to-determine-availability-of-tools-and-plugins-tp5022692p5022696.html
Thanks,
Just what I was looking for!
My toolset loads 8 tools but only 6 of them is listed in this script.
But that is still good enough to identify if my toolset is loaded or not.
Stein
-----Original Message-----
From: ImageJ Interest Group <[hidden email]> On Behalf Of Jerome Mutterer
Sent: 21. november 2019 22:03
To: [hidden email] Subject: Re: How to determine availability of tools and plugins
Dear Stein,
This macro lists informations about current tools:
n=eval('js','IJ.getInstance().getComponents()[0].getNumTools() ');
for (i=0;i<n;i++) {
setTool(i);
s=eval('js','IJ.getInstance().getComponents()[1].getComponents()[0].getText()');
name = IJ.getToolName() ;
print (i, ";", name, ";", s);
}
Jerome.
Le jeu. 21 nov. 2019 à 21:25, Stein Rørvik <[hidden email]> a
écrit :