Login  Register

Second-level Plug-in Menus

Posted by Richard VanMetter on Jan 12, 2015; 6:57pm
URL: http://imagej.273.s1.nabble.com/Second-level-Plug-in-Menus-tp5011191.html

Putting plug-ins in a second level menu is a useful feature that seems
to work sometimes and not others. By not working, I mean that ImageJ
simply ignores the second-level folder in \plugins or some of the
plugins contained in that folder.  I have investigated, trying to find
the trick to making it work, but without success. Perhaps someone can
clarify it for me.

Here's and example. Take the plugins that come shipped with ImageJ.
There is a folder Examples that contains:

  Directory of c:\Program Files (x86)\ImageJ\plugins\Examples

01/12/2015  01:38 PM    <DIR>          .
01/12/2015  01:38 PM    <DIR>          ..
10/04/2012  09:06 AM    <DIR>          -Macros
01/12/2015  01:34 PM    <DIR>          -moreStuff
10/04/2012  09:06 AM    <DIR>          -Scripts
10/29/2011  07:53 PM               716 Image_Inverter.class
10/29/2011  08:06 PM             1,387 Image_Inverter.java
10/29/2011  07:53 PM             3,400 IPDemoRunner.class
10/29/2011  07:53 PM             2,561 IP_Demo.class
10/29/2011  08:06 PM             5,059 IP_Demo.java
10/29/2011  07:53 PM             3,217 Plasma2_.class
10/29/2011  08:06 PM             3,311 Plasma2_.java
                7 File(s)         19,651 bytes

As you can see, I added a folder moreStuff and I moved the Red_And_Blue
plugin into it.

  Directory of c:\Program Files (x86)\ImageJ\plugins\Examples\-moreStuff

01/12/2015  01:34 PM    <DIR>          .
01/12/2015  01:34 PM    <DIR>          ..
10/29/2011  07:53 PM             1,037 Red_And_Blue.class
10/29/2011  08:06 PM               713 Red_And_Blue.java
                2 File(s)          1,750 bytes

I refresh menus and/or restart ImageJ and the -moreStuff folder still
does not appear as a subfolder of Examples. The -Macros and the -Scripts
folders do! and all their content is shown as it should.

Any help would be greatly appreciated. I am teaching a short course in
ImageJ next month and I would like to understand this detail.

I am using - ImageJ 1.49n and Java 1.7.0_03 (64-bit)


Thanks

Rich VanMetter

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html