Cause an unsettable EInt attribute to be unset by default? [message #1142338] |
Thu, 17 October 2013 11:00  |
Eclipse User |
|
|
|
Hello everybody.
In E4 we have a modelled UI. Our Window class has 4 integer attributes to represent the x, y, height, and width of the window. We'd like to make these unsettable by default. When unset, they default to wherever the OS chooses to place the window; when set, they are used to force the window bounds.
Is there any way to modify the .ecore to cause these fields to default to an unset state? Or do I have to modify the generated WindowImpl to set the appropriate __ESet variables?
/**
* The default value of the '{@link #getX() <em>X</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getX()
* @generated
* @ordered
*/
protected static final int X_EDEFAULT = 0;
/**
* The cached value of the '{@link #getX() <em>X</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getX()
* @generated
* @ordered
*/
protected int x = X_EDEFAULT;
/**
* This is true if the X attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean xESet;
Thanks!
Brian.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04131 seconds