plugin in a package

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

plugin in a package

Michael Strupp
Hello imagej community

I'm writing an imagej plugin that uses some other classes I wrote.
The problem is that I cannot import my imagej plugin to these other classes without placing the imagej plugin also in a package and when I put my imagej plugin in a package I cannot run it in imagej.

Is there another solution, than putting all classes outside packages?
I'm sorry for my possibly bad english...

regards,
michael
--
Aufgepasst: Sind Ihre Daten beim Online-Banking auch optimal geschützt?
Jetzt absichern: https://homebanking.gmx.net/?mc=mail@...
Reply | Threaded
Open this post in threaded view
|

Re: plugin in a package

Joris FA Meys
Hi,


On Wed, Mar 18, 2009 at 1:05 PM, Michael Strupp <[hidden email]> wrote:

> Hello imagej community
>
> I'm writing an imagej plugin that uses some other classes I wrote.
> The problem is that I cannot import my imagej plugin to these other classes
> without placing the imagej plugin also in a package and when I put my imagej
> plugin in a package I cannot run it in imagej.

I don't really get this part : normally you should upload your classes into
your plugin, and not the other way around. That should work if you use the
right namespace.

>
>
> Is there another solution, than putting all classes outside packages?

I'm afraid not. Plugins cannot be put in packages for now, but that might
change sooner or later. One possible method to get everything working, is
adding the classes you need to the same jar-file as the plugin. Examples of
how to build up those jar files are found on this list, just search around.

Kind regards
Joris
Reply | Threaded
Open this post in threaded view
|

Re: plugin in a package

Wayne Rasband
In reply to this post by Michael Strupp
On Mar 18, 2009, at 8:05 AM, Michael Strupp wrote:

> Hello imagej community
>
> I'm writing an imagej plugin that uses some other classes I wrote.
> The problem is that I cannot import my imagej plugin to these other
> classes without placing the imagej plugin also in a package and when I
> put my imagej plugin in a package I cannot run it in imagej.
>
> Is there another solution, than putting all classes outside packages?
> I'm sorry for my possibly bad english...

Plugins can be in a package. For an example, look at the Bio-Formats
plugin, especially the plugins.config file in loci_tools.jar.

-wayne