Naga,
It would be best to use the forum for these type of questions.
You can define enums as inner classes right next to the property definition. That will avoid having multiple .java files, but you will of course end up with multiple .class files.
Note that there were some bugs fixed in handling of inner classes in 0.3.1 code stream, so you may need to move to using 0.3.1 builds for this to work.
https://hudson.eclipse.org/hudson/job/sapphire-0.3.x/
- Konstantin
From: Nagarajan Murugesan [mailto:nagarajan.m@xxxxxxxxx]
Sent: Friday, September 09, 2011 5:03 AM
To: Konstantin Komissarchik
Cc: Ling Hao; shenxue.zhou@xxxxxxxxxx; Sapphire project
Subject: Enum values with out adding class
Hi,
I have a big list of properties most of them are enum type (combo selection). Currently we have create a java class with supported values and attach as type base
@Type( base = tChoice.class )
@Label( standard = "SI" )
@XmlBinding( path = "SI" )
ValueProperty PROP_SI = new ValueProperty( TYPE, "si" );
Value<tChoice> getSi();
is there a way I can add list of supported values in annotation itself with out creating class for each and every property or is there an alternate approach not to create huge list of classes for each combo boxes?
Thanks,
-Naga