A decent IDE to write macro

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

A decent IDE to write macro

tisalon
Dear users,

I have recently been writing a macro for ImageJ in BeanShell, an I was
wondering if there is any decent IDE for the ImageJ library. I wouldn't mind
changing to Javascript or to Groovy as far as I could get a list of the
available functions and the required inputs in the functions as it happens
in Rstudio or PyCharm. I think that functionality will clearly boost the
ability of anyone to write a macro. In essence, when someone releases a new
plug-in, it works like a new package for R or Python. The documentation of
many of these packages are available in
https://imagej.nih.gov/ij/developer/api/index.html but I don't know how to
make it dynamically accessible from the IDE.

I have tried to use ImageJ as a library in IntelliJ but fail miserably as it
is not designed for scripting languages such as Groovy, Javascript or
Beanshell. I will really appreciate any help.

Kind regards,



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: A decent IDE to write macro

Marcel
If you don't hesitate working with Eclipse I developed a ImageJ macro editor
plugin which can be installed from the Eclipse Marketplace store:

https://marketplace.eclipse.org/content/imagej-plugin

Github repository:

https://github.com/Bio7/EclipseImageJ1Plugin

Here a video which shows the debugging of a macro:

https://www.youtube.com/watch?v=TqbnFnazxyw

If you want to work with Groovy (Jython,JavaScript) or a Java editor (JDT)
with ImageJ API code completion you can download Bio7 which integrates JDT
and the aforementioned macro editor plugin (an advanced R editor by the way,
too):

http://bio7.org

Bio7 Overview:

https://www.youtube.com/watch?v=pyYn690KaNE

You can compile and test ImageJ Java plugins on the fly (dynamic in process
compilation) or install an advanced
Groovy plugin (Bio7 comes with some simple default editors) which also has
access to the ImageJ API for code completion.

Groovy plugin:

https://github.com/groovy/groovy-eclipse/wiki

Update site:

http://dist.springsource.org/release/GRECLIPSE/e4.7

I tested several other Eclipse editors (JavaScript, Pydev). However until
now the Groovy editor plugin offers the complete code completion toolchain
of JDT.

Here as an example a video how to use ImageJ with a Eclipse JavaScript
editor in Bio7:

https://www.youtube.com/watch?v=v9TFfw3bv9g

The Groovy plugin (or other Eclipse editors) work similar.

My opinion to BeanShell: BeanShell very popular in the past is a little bit
outdated and I would prefer Groovy instead which also offers Java code
compatibility.













--
Sent from: http://imagej.1557.x6.nabble.com/

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