Dear all,
Im in the process of trying to convert a macro into a plugin.
And by doing so, when within this plugin I launch another plugin having
macro extensions, it gives me the following error: "Macro must be running to
install macro extensions".
Thus I thought I can exclude the fact of launching the execution within a
macro or a plugin by using the Boolean instruction IJ.isMacro() which
"returns true if a macro is running, or if the run(), open() or newImage()
method is executing".
But given that the launching is done through an IJ.run instruction, the
IJ.isMacro() is giving true whether it is done through a macro or a plugin.
There is as well the IJ.macroRunning() which "Returns true if the run(),
open() or newImage() method is executing".
But with both methods, I cant do (unless I dont know how) something like
IJ.isMacro() - IJ.macroRunning() to get a true only in the case Im within a
macro.
I thank you very much in advance for your help and ideas.
My best regards,
Philippe
Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 41 84
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html