I have created a ticket to track this issue: <a href="http://dev.imagejdev.org/trac/imagej/ticket/623">http://dev.imagejdev.org/trac/imagej/ticket/623</a>. Note that it does not yet include anything from this discussion.<br>
<br>In regards to the proposal note that I see that the issue is more than just allowing us to populate choices and min/max at runtime. In the ReorderAxes plugin I'd like to have 3 parameters each of which has 3 choices for an XYZ Dataset. And 5 parameters each with 5 choices for an XYCZT Dataset. So I should be able to specify the number of parameters at runtime also. Or make the plugin have the max possible but only enable and display/use a subset of the parameters present.<br>
<br><div class="gmail_quote">On Mon, Jun 20, 2011 at 2:43 PM, Curtis Rueden <span dir="ltr"><<a href="mailto:ctrueden@wisc.edu">ctrueden@wisc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Grant, Barry et. al,<br><br>At the meeting today we discussed how there is currently no way to override an annotated parameter's min, max or choices settings. It would be nice to be able to set them based on the current state upon plugin execution.<br>
<br>One way is to have option callback methods for min, max and choices. So rather than a constant value, the min, max and choices are computed by a method dynamically. For min and max, there could be a notation like putting "#" in front of the string to indicate it's a callback, since min and max of Parameter are already strings. For choices, it's a String, so you'd have to write it as: 'choices = {"#nameOfCallback"}'.<br>
<br>Do you think that's too awkward? Anyone have any better ideas?<br><font color="#888888"><br>-Curtis<br><br>
</font><br>_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagejdev.org">ImageJ-devel@imagejdev.org</a><br>
<a href="http://imagejdev.org/mailman/listinfo/imagej-devel" target="_blank">http://imagejdev.org/mailman/listinfo/imagej-devel</a><br>
<br></blockquote></div><br>