Login  Register

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

Posted by Joachim Walter on Jan 30, 2006; 9:41am
URL: http://imagej.273.s1.nabble.com/How-do-you-setup-Eclipse-to-work-in-preparring-an-ImageJ-plugin-tp3703915p3703916.html

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]