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. Thanks, Frank -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
> 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 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.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 |
On Dec 19, 2015, at 1:48 AM, Volko Straub <[hidden email]> wrote:
> > 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? Tool plugins (files with names ending in “_Tool.ijm", “_Tool.class" or “_Tool.jar”) are installed in the toolbar when you select them from the Plugins menu or submenu. In addition, they are automatically added to the toolbar’s “>>” menu if they are located in the plugins/Tools folder. Tools installed from the “>>” menu are reinstalled when ImageJ restarts except when installation requires toolbar expansion. Note that the tool name (e.g. “About_Action_Tool") and file name (e.g. “About_Action_Tool.ijm”) must be consistent. There are several example plugin tools at http://wsr.imagej.net/plugins/Tools/ To always install a tool at startup, or to work around the no toolbar expansion limitation, add a command that that installs the tool to the Edit>Options>Startup dialog. For example run("About Action Tool"); installs the “About Action Tool” (http://wsr.imagej.net/plugins/Tools/About_Action_Tool.ijm). Tool plugins do not work as expected in Fiji. Instead of installing them, Fiji tries to run them. -wayne -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |