logo       

Re: Multiple menu entry user plugins, how to do it?: msg#00248

java.imagej

Subject: Re: Multiple menu entry user plugins, how to do it?

To get a plugin to have multiple menu entries you have to package it as a JAR file containing a plugins.config file. The example plugin at

http://rsb.info.nih.gov/ij/plugins/jar-demo.html

has 11 menu entries. Or look at the Benchmarks package at

http://rsb.info.nih.gov/ij/plugins/benchmarks.html

which consists of 6 plugins with 17 menu entries.

-wayne


On Mar 25, 2006, at 4:12 AM, Joachim Wesner wrote:

Hi there,

I was wondering how some of the already "built-in" plugins
get their functionality that ONE plugin has SEVERAL menu
entries, for example with the now permanently
built-in FFT plugin, that has sub-menus like
"FFT", "Inverse FFT", "Redisplay...", FFT options..." etc.

I found out that the action for the plugin to do is controlled
by the argument in the setup routine, (easy, documented),
however, what causes the extra menu entries and to send
the extra options to setup (not so much documented IMHO) ?
Looking through the sources you can find out that it´s all in
the IJ_props.txt, which is normally AFAIK in the ij.jar file, so
no "user servicable part" while the plugin development phase.

Any idea how to implement an extra "Options/Settings" entry
for a user defined Plugin? Use 2 plugins that communicate
by global variables (Brrrr) resp. an extra class?

Sincerely

Joachim

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise