http://imagej.273.s1.nabble.com/Rewriting-a-macro-as-a-plugin-tricks-and-tips-welcome-tp3683516p3683518.html
"plugin" mode. That's great! Thanks for pointing it out.
> You shouldn't need this command in a plugin since all it does is suppress
> image re-display after execution of a menu command by the macro.
>
> if you have a series of macro statments, you might try opening the macro
> recorder, pasting them into its window, then selecting Record/plugin, and
> then click the Create button. Legit IJ coomands will show up as IJ.run(....)
> method calls. Things like setBatchMode(true) wont compile so you will be
> able to find them easily to change them.
>
> Use the ImageJ compile and run command on the Plugin menu or in the File
> menu from the plugin file you cated. If you use Eclipse, you may have to
> write a "main()" method class
> to gett the plugin to run.
>
> David Webster
>
> On Fri, Aug 12, 2011 at 4:04 PM, Emmanuel Levy <
[hidden email]>wrote:
>
>> Hello,
>>
>> I've been writing a macro that I would like to re-write more properly
>> as a plugin. I've installed Eclipse and got the "Hello Word" working.
>> However, I'm not sure what's the best way to proceed further.
>>
>> For example, my first macro command is:
>>
>> setBatchMode(true);
>>
>> And I just couldn't find the call I should use to do that. More than
>> an answer for this specific command, what is the best way to find the
>> java methods/attributes associated to macro functions?
>>
>> Thanks for any hint,
>>
>> Emmanuel
>>
>