Re: Call plugin with arg from macro
Posted by
Ben Tupper on
URL: http://imagej.273.s1.nabble.com/Colocalisation-tp3696413p3696421.html
On Apr 23, 2008, at 2:58 AM, Albert Cardona wrote:
> Joachim,
>
>
> From the macro language you can call static methods on classes. Thus:
>
> call("IJ.runPlugIn", "My_PlugIn_ClassName", "some arg here);
>
>
Hi,
Oooo, your approach provides an interesting twist. The call() macro
command is expecting a static class method - see ....
http://rsb.info.nih.gov/ij/developer/macro/functions.html#CIn my mind I had always drawn a straight line between my macro and my
plugin (via a static plugin method). Your trick is quite clever
since the user plugin doesn't have to have a static method. Neato.
Thanks for sharing that.
Cheers,
Ben
Ben Tupper
[hidden email]
I GoodSearch for Ashwood Waldorf School.
Raise money for your favorite charity or school just by searching the
Internet with GoodSearch - www.goodsearch.com - powered by Yahoo!