plugins.config format

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

plugins.config format

J. Anthony Parker
I'm having trouble figuring out the correct format for a  
plugins.config file when the plugin is located in a subdirectory of  
the .jar file.  For example, I have a plugin, plugins/NucMed/
AtoN_TP.class.  In the .jar file it is located in "NucMed/".  I have  
placed the .jar file in the plugins folder.  I have tried:
Plugins>NucMed, "AtoN TP", AtoN_TP
Plugins>NucMed, "AtoN TP", NucMed.AtoN_TP
Plugins>NucMed, "AtoN TP", plugins.NucMed.AtoN_TP
without success.

Any suggestions?

Thanks,
Tony
J. Anthony Parker, MD PhD
[hidden email]
tel 617 667-5250 fax -2185 comp -5275
page 617 632-7243 #31978
330 Brookline Ave, Boston, MA, 02215-5400
Reply | Threaded
Open this post in threaded view
|

Re: plugins.config format

ctrueden
Hi Tony,

For the Bio-Formats plugins we use entries such as:

Plugins>LOCI, "LOCI Plugins Configuration",
loci.plugins.config.LociConfig("")
Plugins>LOCI, "-"
Plugins>LOCI, "Data Browser", loci.plugins.LociImporter("location=[Local
machine] view=[Data Browser] stack_order=[XYZCT] group_files=true
use_virtual_stack=true ")
Plugins>LOCI, "Bio-Formats Importer",
loci.plugins.LociImporter("location=[Local machine] windowless=false ")
Plugins>LOCI, "Bio-Formats Exporter", loci.plugins.LociExporter("")
Help>About Plugins, "LOCI Plugins...", loci.plugins.LociImporter("about")

And as you say, the JAR file goes in the plugins folder.

In your .jar file, the directory structure should match your package
declaration. So if AtoN_TP.java declares "package NucMed;" at the top, it
should be in "NucMed/" in the JAR, and your entry would be:

Plugins>NucMed, "AtoN TP", NucMed.AtoN_TP("")

The ("") passes empty string to run's arg parameter and probably isn't
necessary, but I haven't tested without it.

HTH,
Curtis

On Mon, Apr 7, 2008 at 10:24 AM, J. Anthony Parker <
[hidden email]> wrote:

> I'm having trouble figuring out the correct format for a plugins.config
> file when the plugin is located in a subdirectory of the .jar file.  For
> example, I have a plugin, plugins/NucMed/AtoN_TP.class.  In the .jar file it
> is located in "NucMed/".  I have placed the .jar file in the plugins folder.
>  I have tried:
> Plugins>NucMed, "AtoN TP", AtoN_TP
> Plugins>NucMed, "AtoN TP", NucMed.AtoN_TP
> Plugins>NucMed, "AtoN TP", plugins.NucMed.AtoN_TP
> without success.
>
> Any suggestions?
>
> Thanks,
> Tony
> J. Anthony Parker, MD PhD
> [hidden email]
> tel 617 667-5250 fax -2185 comp -5275
> page 617 632-7243 #31978
> 330 Brookline Ave, Boston, MA, 02215-5400
>