eclipse plugin: Set the default string as default EOL value as well.

This commit is contained in:
Timotei Dolean 2011-07-15 21:08:28 +00:00
parent 493f26fdd8
commit 0913e25cfc
5 changed files with 8 additions and 5 deletions

View file

@ -20,7 +20,8 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="value" upperBound="-1"
eType="ecore:EClass platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="eol" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="eol" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral=""/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WMLKeyValue"/>
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroCall" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroCallParameter platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRootExpression">

View file

@ -45,6 +45,7 @@ public interface WMLKey extends WMLExpression
/**
* Returns the value of the '<em><b>Eol</b></em>' attribute.
* The default value is <code>""</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Eol</em>' attribute isn't clear,
@ -54,7 +55,7 @@ public interface WMLKey extends WMLExpression
* @return the value of the '<em>Eol</em>' attribute.
* @see #setEol(String)
* @see org.wesnoth.wml.WmlPackage#getWMLKey_Eol()
* @model
* @model default=""
* @generated
*/
String getEol();

View file

@ -59,7 +59,7 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
* @generated
* @ordered
*/
protected static final String EOL_EDEFAULT = null;
protected static final String EOL_EDEFAULT = "";
/**
* The cached value of the '{@link #getEol() <em>Eol</em>}' attribute.

View file

@ -649,7 +649,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
initEClass(wmlKeyEClass, WMLKey.class, "WMLKey", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getWMLKey_Value(), this.getWMLKeyValue(), null, "value", null, 0, -1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLKey_Eol(), ecorePackage.getEString(), "eol", null, 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLKey_Eol(), ecorePackage.getEString(), "eol", "", 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(wmlKeyValueEClass, WMLKeyValue.class, "WMLKeyValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

View file

@ -17,4 +17,5 @@ process( ecore::EAttribute this ):
if name == 'plus' then setDefaultValueLiteral( "" )
else if name == 'point' then setDefaultValueLiteral( "" )
else if name == 'relative' then setDefaultValueLiteral( "" )
else if name == 'name' then setDefaultValueLiteral( "" );
else if name == 'name' then setDefaultValueLiteral( "" )
else if name == 'eol' then setDefaultValueLiteral( "" );