Community
Participate
Working Groups
In RUIWidget Box.egl, there's a field declared as follows: alignment int {@EGLProperty{setMethod = setAlignment, getMethod = getAlignment}, @VEProperty{ propertyType = "choice", choices = [ @VEPropertyChoice {displayName = "LEFT", id = "${typeName:com.ibm.egl.rui.widgets.BoxLib}.ALIGN_LEFT"}, @VEPropertyChoice {displayName = "CENTER", id = "${typeName:com.ibm.egl.rui.widgets.BoxLib}.ALIGN_CENTER"}, @VEPropertyChoice {displayName = "RIGHT", id = "${typeName:com.ibm.egl.rui.widgets.BoxLib}.ALIGN_RIGHT"} ], default = "${typeName:com.ibm.egl.rui.widgets.BoxLib}.ALIGN_LEFT" }}; However, the eglProperty is represented as an empty annotation: <fields ID="110" eClass="org.eclipse.edt.mof.egl.Field" name="alignment" type="egl:egl.lang.int32" isNullable="false" isStatic="false" isAbstract="false" hasSetValuesBlock="true" isImplicit="false" isSystemField="false" > <annotations ID="364" eClass="egl:egl.core.eglproperty" />
I have fixed this with a change to EGL2MofMember. The code was basically only persisting annotation values that are primitive types (int, string, etc..). I have changed this to allow name type expressions
Verified fix.