Posted by
Straub, Volko A. (Dr.) on
Dec 19, 2015; 6:39am
URL: http://imagej.273.s1.nabble.com/how-to-modify-plugin-menu-tp5015255p5015261.html
On 19/12/2015 02:59, Rasband, Wayne (NIH/NIMH) [E] wrote:
>> On Dec 18, 2015, at 11:19 AM, Shaffer, Franklin D. <
[hidden email]> wrote:
>>
>> Can anyone point me to something that explains how to modify the plugin menu, I mean, to change where plugins show up in the plugin menu.
>> I would like to create folders in the plugin menu, and move plugins links into folders.
> All you have to do is create folders in the plugins folder, move plugins into them and run the Help>Refresh Menus command. This works with all types of plugins (.class, .jar, .ijm, .js, .bsh and .py), except for .jar files containing a plugins.config file that installs plugins contained in the .jar file in specific menu locations. In this case, for each plugin, use the recorder (Plugins>Macros>Record) to create a one line macro that runs the plugin and save it in one of the newly created folders.
>
> -wayne
Hi Wayne,
Should this work for all macro (ijm) files?
I tried your suggestion for a macro (ijm file) that creates an action
tool button which when clicked carries out a series of operations. The
macro works fine when I install it using 'Macros -> Install'.
However, when I create a folder in the plugins directory and put the ijm
file in there, the folder and macro title are shown under the plugins
menu in ImageJ (v. 1.50e), but clicking on the entry in the plugins menu
has no effect.
When I try the same using a Fiji ImageJ installation (same version of
ImageJ, v. 1.50e), the folder and macro are not even displayed in the
plugins menu.
Does this mean that this approach does not work for macros that create
action tool buttons? Or is there something I am missing?
Thanks,
Volko
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html