|
From: Radu G. <rad...@gm...> - 2009-07-23 23:21:17
|
I changed clops to maintain the order of enum values. The syntax for the property "choices" of the type "enum" (and of the type "enum-list") is now: choices="string1|string2(VALUE1),string3(VALUE2)" You are guaranteed that VALUE1.compareTo(VALUE2) < 0. This is nice to have if you use an enum to represent verbosity levels. The syntax used to be: choices="string1(VALUE1),string2(VALUE1),string3(VALUE2)" or choices="string1(VALUE1),string3(VALUE2),string2(VALUE1)" I added as a task the check that values are unique. Let me know if you see any problems with this, or if you like a different syntax. |