In my RCP application database model I have an Enum called Quality Criteria and I have an EClass that has has an attribute of type Quality Criteria (a photo is attached to explain). Through out the application I need to modify this Enum and add/delete some items. I tried several methods like QualityCriteria.VALUES.add(E) but it didn't work. Would anyone please let me know how can I do it?
You can't change generated EMF models at runtime, just as you can't add
enumerators to Java enums at runtime.
On 25/10/2012 8:43 AM, zainab alhaidary wrote:
> Dear All,
>
> In my RCP application database model I have an Enum called Quality Criteria and I have an EClass that has has an attribute of type Quality Criteria (a photo is attached to explain). Through out the application I need to modify this Enum and add/delete some items. I tried several methods like QualityCriteria.VALUES.add(E) but it didn't work. Would anyone please let me know how can I do it?
You can always make it just a string and modify the property
descriptor's getChoiceOfValues to provide the fixed set of strings the
user may enter via a drop down.
On 25/10/2012 10:16 AM, zainab alhaidary wrote:
> Is there any modifiable option that I can use instead of enum?