Posted by
Juanjo Vega on
Jun 01, 2011; 11:39am
URL: http://imagej.273.s1.nabble.com/call-to-my-plugin-from-other-one-tp3684404p3684406.html
Gadea,
I'm not sure if this will fix the problem at last, but according to the sample code you are showing, you are not doing what Michael said:
"f you have plugin_1.class, you need IJ.run("plugin 1")."
I mean, you must replace the underscore by a blank space, it is: IJ.run("Plugin 1");
And plugins must be stored at the plugins folder. If you can see them at the plugins menu, then they are installed correctly. In fact, you should check that to discard installation errors. If you can invoke them from the menu, then you must be able to do the same from a plugin.
Sincerely,
Juanjo.
On Jun 1, 2011, at 1:29 PM, gadea wrote:
> Hi!
>
> I've tried these solutions, but nothing.
>
> The first plugin saves in the plugin folder in ImageJ. The second plugin is
> this:
>
> public class Plugin_2 implements PlugIn {
>
> public void run (String arg){
>
> IJ.run("Plugin_1");
>
> }
> }
>
> I've tried with only name the plugin, with the path, ... I haven't more
> ideas!
> I'm trying with threads ande the command syncronized but I don't get
> anything.
>
> Could be that I can't call a plugin with the command "run" if the plugin is
> saved in the plugin folder?
>
> thanks for advanced,
>
> Gadea M.M.
>
>
>
>
>
>
>
> --
> View this message in context:
http://imagej.588099.n2.nabble.com/call-to-my-plugin-from-other-one-tp6418716p6426501.html> Sent from the ImageJ mailing list archive at Nabble.com.
------------------------------------------------------------
Juanjo Vega (
[hidden email])
Unidad de Biocomputación. Laboratorio B-13.
Centro Nacional de Biotecnología. CNB-CSIC.
C\ Darwin, 3. Campus de Cantoblanco.
Universidad Autónoma de Madrid.
28049, Madrid, Spain.
http://www.cnb.csic.eshttp://www.biocomp.cnb.csic.es+34 91 585 4510
"Las mejores almas son capaces de los mayores vicios como de las mayores
virtudes, y aquellos que caminan despacio por el camino recto pueden
llegar más lejos que los que corren pero se apartan de él." - Discurso
del Método, René Descartes.