http://imagej.273.s1.nabble.com/Programatic-Plugin-installation-tp3702389p3702393.html
Unfortunatly it is not that. I originally programmed it like you suggested
>
> Hello,
>
> I would guess that you can create two objects, one for each macro you want
> to install. Have you tried that?
>
> MacroInstaller installerRB = new ij.plugin.MacroInstaller();
> MacroInstaller installerLB = new ij.plugin.MacroInstaller();
>
> installerRB.install(ROIBrush_.MACRO_CMD);
> installerLB.install(LabelBrush_.MACRO_CMD);
>
> I hope it's this,
>
> Agnès
>
> On 28/06/06, Tom Larkworthy <
[hidden email]> wrote:
> >
> > 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
> >
>