I have an Eclass Vehiclethat has an enum attribute BreakType breakType.
BreakType defined in the same Ecore model as:
BreakType{
DRUM(0), DISC(1), BLADE(2)
}
I want to set the BreakTypedefault attribute to null. To do this, I set the following properties for the attribute BreakType→
DefaultLiteralValue: // it blank
Unsettable: True
Properties of BreakType enum
Default Value : DRUM=0 // this is shown in editor UI even If i remove it from xml.
What I get after generating the gene model and code from it,
BreakType breakType = DRUM // attribute set with default value
How can I set its default value?
source
share