Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
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 > ... [show rest of quote]
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Hi David,
I didn't notice that one could record in "macro" mode but also in "plugin" mode. That's great! Thanks for pointing it out. Best wishes, Emmanuel On 12 August 2011 20:44, David Webster <[hidden email]> wrote: > 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 >> > ... [show rest of quote]
|
Free forum by Nabble | Disable Popup Ads | Edit this page |