Re: Programatic Plugin installation
Posted by
Jerome Mutterer on
Jun 28, 2006; 8:40am
URL: http://imagej.273.s1.nabble.com/Programatic-Plugin-installation-tp3702389p3702394.html
Tom,
you could consider using the ActionBar plugin. With this plugin, you
can design one or more custom buttton bar(s) from which you can easily
run macro commands, macros files or install different macros sets or
macrotools sets and switch from one set to another.
You can see the ActionBar description at :
http://rsb.info.nih.gov/ij/plugins/action-bar/Jerome
Quoting Tom Larkworthy <
[hidden email]>:
> 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
>