Login  Register

Macro.getOptions() returns null!

Posted by xanibas on Mar 15, 2010; 3:37pm
URL: http://imagej.273.s1.nabble.com/Macro-getOptions-returns-null-tp3688912.html

I'm passing arguments for a PlugIn through:

> String args = "par1="+ value1 +" par2="+ value2 +... + "";
> IJ.run("CommandName", args);

and the run function of the class implementing PlugIn looks as following:

> public void run(String arg) {
> String options = Macro.getOptions();
> if (options==null){

> ...
> }
> else {
> ...
> }

The problem is that Macro.getOptions() always returns NULL. I was wondering if the problem lies in the ij.macro.Interpreter. Any ideas?

Thank in advance