How do you setup Eclipse to work in preparring an ImageJ plugin?

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

How do you setup Eclipse to work in preparring an ImageJ plugin?

Ryan Littlefield
Hi All,

This is probably a novice question...

I have been trying to setup a project in eclipse to work with ImageJ so
that I can edit my plugin in Eclipse and then run it through ImageJ
without having to separately copy the file to the plugins folder.
Whenever I tell Eclipse to use the plugins folder as the workspace, it
appears to duplicate files, causing ImageJ to start deleting the
originals.  Is an easy way around this when I setup the project?

Alternatively, I tried setting up ImageJ as a project in Eclipse so that
I can run it through Eclipse, but then it does not seem to find the
plugins folder.  Is there a way for it to find the plugins folder?

I would appreciate it if anyone who has setup Eclipse to work with
ImageJ and plugin development for ImageJ could let me know how they did it.

Thanks,
Ryan Littlefield
Reply | Threaded
Open this post in threaded view
|

Re: How do you setup Eclipse to work in preparring an ImageJ plugin?

Joachim Walter
Hi Ryan,

that's the way that worked for me:
I created the following directory structure:

                 ImageJ
            src -|    |-bin
   myPlugin-| |-ij       |-plugins
                               |-myPlugin


I create separate projects for ImageJ and for the plugin(s). The ImageJ
sources go into the src/ij directory, the plugin sources into
src/myPlugin. The classes go into the "bin" directory for ImageJ
(eclipse forms the appropriate directory structure itself: ij, ij/gui,
...). The classes for the plugin go into bin/plugins/myPlugin directory.
  So when you run ImageJ, the plugin appears in a submenu of the
"plugins" menu.
When you create a project, the dialog doesn't let you choose this
configuration. But you can create the project and then change the source
and bin folder.
Probably a more convenient way would be to use ANT...

Hope this helps, Joachim



Ryan Littlefield schrieb:

> Hi All,
>
> This is probably a novice question...
>
> I have been trying to setup a project in eclipse to work with ImageJ so
> that I can edit my plugin in Eclipse and then run it through ImageJ
> without having to separately copy the file to the plugins folder.
> Whenever I tell Eclipse to use the plugins folder as the workspace, it
> appears to duplicate files, causing ImageJ to start deleting the
> originals.  Is an easy way around this when I setup the project?
>
> Alternatively, I tried setting up ImageJ as a project in Eclipse so that
> I can run it through Eclipse, but then it does not seem to find the
> plugins folder.  Is there a way for it to find the plugins folder?
>
> I would appreciate it if anyone who has setup Eclipse to work with
> ImageJ and plugin development for ImageJ could let me know how they did it.
>
> Thanks,
> Ryan Littlefield


--
-----------------------------------------------
Dr. Joachim Walter

TILL I.D. GmbH
c\o BioImaging Zentrum
Großhaderner Str. 2
D-82152 Martinsried

Tel.: +49-89-2180-74189
Fax:  +49-89-2180-9974189

[hidden email]