Argument not passed to PluginFilter

Posted by Iain Marcuson on
URL: http://imagej.273.s1.nabble.com/Argument-not-passed-to-PluginFilter-tp5019166.html

I am attempting to call a PluginFilter from a Plugin.

I call the PluginFilter with
outfile = tf_back_sub_filename.getText();
IJ.showMessage(outfile);
IJ.run("Gradient Subtract Auto", outfile);

The showMessage() verifies that outfile is correct and not empty or null.

The setup function of the PluginFilter is:

public int setup(String arg, ImagePlus imp) {
        this.imp = imp;
        back_filename = arg;
        IJ.showMessage("back_filename is \"" + back_filename + "\"\narg is \""+arg+"\"");
        return DOES_32;
}

However, the showMessage indicates that arg and back_filename are both empty.  

Is there something I am missing?

Thank you,

Iain.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html