Programatic Plugin installation
Posted by Tom Larkworthy on Jun 28, 2006; 3:16am
URL: http://imagej.273.s1.nabble.com/Programatic-Plugin-installation-tp3702389.html
Hello,
How do I install macro tools from another plugin?
Currently I am doing:-
MacroInstaller installer = new ij.plugin.MacroInstaller();
installer.install(ROIBrush_.MACRO_CMD); //MACRO_CMD contains the macro
definition as it would appear in a macro.txt file
installer.install(LabelBrush_.MACRO_CMD);
But only the last called macro tool appears in the toolbar. i.e. in this
case the LabelBrush_ tool appears, but if I reversed the calling order then
the ROIBrush would be the only one that appeared in the toolbar.
Thanks
Tom Larkworthy