Posted by
bnorthan on
Mar 18, 2016; 3:27pm
URL: http://imagej.273.s1.nabble.com/script-parameter-for-popup-menu-tp5015936p5015938.html
Hi Mark and Jon
a) if you are having trouble with script parameters in general the resource
Mark gave is good. As well as
http://imagej.net/Presentations (scroll down
to workshops->Parameterized Scripting + Ops). Slides for that presentation
are here
https://imagej.github.io/presentations/2015-09-04-imagej2-scripting/#/b) Perhaps you want a "menu" on your pop-up dialog?? Like a drop down that
gives you choices??
if so in java that is easy to do...
@Parameter(required = false, label = "Method", choices = { "Manual",
"Automatic" })
private String method = "Automatic";
I couldn't get that to work in the script editor... do you know how Mark??
This is what I tried using Groovy
// @String(label="test",choices={"a","b"}) choicetest
On Fri, Mar 18, 2016 at 11:30 AM, Mark Hiner <
[hidden email]> wrote:
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html