Actions
Bug #5691
openparameter choices are not saved
Start date:
08/20/2012
Due date:
% Done:
0%
Estimated time:
Bugzilla-Id:
5691
Description
The choices for Parameter.addChoice() are not written when the model is saved.
Updated by Daniel Crawl over 12 years ago
If I add choices to a parameter in a workflow, I would like those choices available the next time I open the workflow. I was able to accomplish this by manually adding an EditableChoiceStyle containing each choice, e.g.:
<property name="control" class="ptolemy.actor.parameters.PortParameter" value="Local Execution">
<property name="style" class="ptolemy.actor.gui.style.EditableChoiceStyle">
<property name="choice1" class="ptolemy.data.expr.StringParameter" value="Map Reduce">
</property>
<property name="choice2" class="ptolemy.data.expr.StringParameter" value="Map Only">
</property>
<property name="choice3" class="ptolemy.data.expr.StringParameter" value="Cross Reduce">
</property>
<property name="choice4" class="ptolemy.data.expr.StringParameter" value="Job Submission">
</property>
</property>
</property>
I have to manually add and remove the choiceN parameters; it would be nice if this were automatically done. I'm lowering the priority and retargeting.
Actions