Re: Problem with "&variable" in run() macro statement

Posted by Herbie-3 on
URL: http://imagej.273.s1.nabble.com/Problem-with-variable-in-run-macro-statement-tp5004565p5004576.html

José,

when using a list for a drop down menu, the items are strings, at least
in the IJ-macro language.

HTH

Herbie

_________________________________________
On 27.08.13 17:42, José María Mateos wrote:

> 2013/8/27 Rasband, Wayne (NIH/NIMH) [E] <[hidden email]>:
>> I am unable to duplicate this problem using this test plugin:
>>
>>     import ij.*;
>>     import ij.gui.*;
>>     import ij.plugin.*;
>>
>>     public class Average_Frames implements PlugIn {
>>        int first=1, last=10;
>>
>>        public void run(String arg) {
>>           GenericDialog gd = new GenericDialog("Test Dialog");
>>           gd.addNumericField("First frame: ", first, 0);
>>           gd.addNumericField("Last frame: ", last, 0);
>
> Thanks for your answer, Wayne. I think I've found where we are
> diverging. My plugin (BTW, code at
> https://github.com/HGGM-LIM/limtools/blob/master/src/main/java/limtools/Average_Frames.java)
> does not build its GUI with gd.addNumericField but with gd.addChoice
> (so I can limit the range of values the user can provide). Might it be
> a bug in the variable conversion when using the addChoice method?
>
> Best,
>
> José.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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