Login  Register

Re: Menu suggestions

Posted by Gabriel Landini on Feb 22, 2009; 11:47am
URL: http://imagej.273.s1.nabble.com/toggle-ActionBar-AlwaysOnTop-and-the-API-tp3693618p3693622.html

On Saturday 14 February 2009, Dscho wrote:
> Sorry, you cannot extend the dialog shown by Edit>Options>Misc...
> However, you can add another plugin that you insert into the Edit>Options
> menu using a line in plugins.config like this:
>
> Edit>Options, "ActionBar...", ActionBar_Options
>
> (this assumes that you have a plugin class named ActionBar_Options, and
> that you bundle all your classes into a .jar file).

Can this also be used to add macros and js to the menu? Or does it only
support classes?
I tried adding the new exact erode, but nothing happens:
Process>Binary, "Erode exact", Erode_exact.js
(in the plugins.config file)
Or can the class that executes the js file be called there? If so can somebody
show how?

Cheers

G.