made ecore model portable

This commit is contained in:
overflowerror 2022-02-02 17:16:28 +01:00
parent e00d86eb1c
commit b9b7bf18a0
2 changed files with 27 additions and 27 deletions

View file

@ -2,10 +2,10 @@
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="xtext" nsURI="http://www.eclipse.org/2008/Xtext" nsPrefix="xtext"> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="xtext" nsURI="http://www.eclipse.org/2008/Xtext" nsPrefix="xtext">
<eClassifiers xsi:type="ecore:EClass" name="Grammar"> <eClassifiers xsi:type="ecore:EClass" name="Grammar">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="usedGrammars" unique="false" <eStructuralFeatures xsi:type="ecore:EReference" name="usedGrammars" unique="false"
upperBound="-1" eType="#//Grammar"/> upperBound="-1" eType="#//Grammar"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="definesHiddenTokens" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="definesHiddenTokens" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="hiddenTokens" unique="false" <eStructuralFeatures xsi:type="ecore:EReference" name="hiddenTokens" unique="false"
upperBound="-1" eType="#//AbstractRule"/> upperBound="-1" eType="#//AbstractRule"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="metamodelDeclarations" <eStructuralFeatures xsi:type="ecore:EReference" name="metamodelDeclarations"
@ -19,7 +19,7 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="debug" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="debug" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractRule"> <eClassifiers xsi:type="ecore:EClass" name="AbstractRule">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//TypeRef" <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//TypeRef"
containment="true"/> containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="alternatives" eType="#//AbstractElement" <eStructuralFeatures xsi:type="ecore:EReference" name="alternatives" eType="#//AbstractElement"
@ -28,49 +28,49 @@
eType="#//Annotation" containment="true"/> eType="#//Annotation" containment="true"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractMetamodelDeclaration"> <eClassifiers xsi:type="ecore:EClass" name="AbstractMetamodelDeclaration">
<eStructuralFeatures xsi:type="ecore:EReference" name="ePackage" eType="ecore:EClass ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EPackage"/> <eStructuralFeatures xsi:type="ecore:EReference" name="ePackage" eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EPackage"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="alias" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="alias" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GeneratedMetamodel" eSuperTypes="#//AbstractMetamodelDeclaration"> <eClassifiers xsi:type="ecore:EClass" name="GeneratedMetamodel" eSuperTypes="#//AbstractMetamodelDeclaration">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ReferencedMetamodel" eSuperTypes="#//AbstractMetamodelDeclaration"/> <eClassifiers xsi:type="ecore:EClass" name="ReferencedMetamodel" eSuperTypes="#//AbstractMetamodelDeclaration"/>
<eClassifiers xsi:type="ecore:EClass" name="ParserRule" eSuperTypes="#//AbstractRule"> <eClassifiers xsi:type="ecore:EClass" name="ParserRule" eSuperTypes="#//AbstractRule">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="definesHiddenTokens" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="definesHiddenTokens" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="hiddenTokens" unique="false" <eStructuralFeatures xsi:type="ecore:EReference" name="hiddenTokens" unique="false"
upperBound="-1" eType="#//AbstractRule"/> upperBound="-1" eType="#//AbstractRule"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1" <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
eType="#//Parameter" containment="true"/> eType="#//Parameter" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="fragment" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="fragment" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="wildcard" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="wildcard" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="TypeRef"> <eClassifiers xsi:type="ecore:EClass" name="TypeRef">
<eStructuralFeatures xsi:type="ecore:EReference" name="metamodel" eType="#//AbstractMetamodelDeclaration"/> <eStructuralFeatures xsi:type="ecore:EReference" name="metamodel" eType="#//AbstractMetamodelDeclaration"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="classifier" eType="ecore:EClass ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EClassifier"/> <eStructuralFeatures xsi:type="ecore:EReference" name="classifier" eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EClassifier"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractElement"> <eClassifiers xsi:type="ecore:EClass" name="AbstractElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="cardinality" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="cardinality" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="predicated" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="predicated" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="firstSetPredicated" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="firstSetPredicated" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Action" eSuperTypes="#//AbstractElement"> <eClassifiers xsi:type="ecore:EClass" name="Action" eSuperTypes="#//AbstractElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//TypeRef" <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//TypeRef"
containment="true"/> containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="feature" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="feature" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Keyword" eSuperTypes="#//AbstractElement"> <eClassifiers xsi:type="ecore:EClass" name="Keyword" eSuperTypes="#//AbstractElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="RuleCall" eSuperTypes="#//AbstractElement"> <eClassifiers xsi:type="ecore:EClass" name="RuleCall" eSuperTypes="#//AbstractElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="rule" eType="#//AbstractRule"/> <eStructuralFeatures xsi:type="ecore:EReference" name="rule" eType="#//AbstractRule"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="arguments" upperBound="-1" <eStructuralFeatures xsi:type="ecore:EReference" name="arguments" upperBound="-1"
eType="#//NamedArgument" containment="true"/> eType="#//NamedArgument" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="explicitlyCalled" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="explicitlyCalled" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Assignment" eSuperTypes="#//AbstractElement"> <eClassifiers xsi:type="ecore:EClass" name="Assignment" eSuperTypes="#//AbstractElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="feature" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="feature" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="terminal" eType="#//AbstractElement" <eStructuralFeatures xsi:type="ecore:EReference" name="terminal" eType="#//AbstractElement"
containment="true"/> containment="true"/>
</eClassifiers> </eClassifiers>
@ -81,7 +81,7 @@
containment="true"/> containment="true"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="TerminalRule" eSuperTypes="#//AbstractRule"> <eClassifiers xsi:type="ecore:EClass" name="TerminalRule" eSuperTypes="#//AbstractRule">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="fragment" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="fragment" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractNegatedToken" eSuperTypes="#//AbstractElement"> <eClassifiers xsi:type="ecore:EClass" name="AbstractNegatedToken" eSuperTypes="#//AbstractElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="terminal" eType="#//AbstractElement" <eStructuralFeatures xsi:type="ecore:EReference" name="terminal" eType="#//AbstractElement"
@ -92,7 +92,7 @@
<eClassifiers xsi:type="ecore:EClass" name="Wildcard" eSuperTypes="#//AbstractElement"/> <eClassifiers xsi:type="ecore:EClass" name="Wildcard" eSuperTypes="#//AbstractElement"/>
<eClassifiers xsi:type="ecore:EClass" name="EnumRule" eSuperTypes="#//AbstractRule"/> <eClassifiers xsi:type="ecore:EClass" name="EnumRule" eSuperTypes="#//AbstractRule"/>
<eClassifiers xsi:type="ecore:EClass" name="EnumLiteralDeclaration" eSuperTypes="#//AbstractElement"> <eClassifiers xsi:type="ecore:EClass" name="EnumLiteralDeclaration" eSuperTypes="#//AbstractElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="enumLiteral" eType="ecore:EClass ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EEnumLiteral"/> <eStructuralFeatures xsi:type="ecore:EReference" name="enumLiteral" eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EEnumLiteral"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="literal" eType="#//Keyword" <eStructuralFeatures xsi:type="ecore:EReference" name="literal" eType="#//Keyword"
containment="true"/> containment="true"/>
</eClassifiers> </eClassifiers>
@ -114,13 +114,13 @@
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EOF" eSuperTypes="#//AbstractElement"/> <eClassifiers xsi:type="ecore:EClass" name="EOF" eSuperTypes="#//AbstractElement"/>
<eClassifiers xsi:type="ecore:EClass" name="Parameter"> <eClassifiers xsi:type="ecore:EClass" name="Parameter">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="NamedArgument"> <eClassifiers xsi:type="ecore:EClass" name="NamedArgument">
<eStructuralFeatures xsi:type="ecore:EReference" name="parameter" eType="#//Parameter"/> <eStructuralFeatures xsi:type="ecore:EReference" name="parameter" eType="#//Parameter"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//Condition" <eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//Condition"
containment="true"/> containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="calledByName" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="calledByName" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Condition"/> <eClassifiers xsi:type="ecore:EClass" name="Condition"/>
<eClassifiers xsi:type="ecore:EClass" name="Conjunction" eSuperTypes="#//CompositeCondition"/> <eClassifiers xsi:type="ecore:EClass" name="Conjunction" eSuperTypes="#//CompositeCondition"/>
@ -139,10 +139,10 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="parameter" eType="#//Parameter"/> <eStructuralFeatures xsi:type="ecore:EReference" name="parameter" eType="#//Parameter"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="LiteralCondition" eSuperTypes="#//Condition"> <eClassifiers xsi:type="ecore:EClass" name="LiteralCondition" eSuperTypes="#//Condition">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="true" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="true" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Annotation"> <eClassifiers xsi:type="ecore:EClass" name="Annotation">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractSemanticPredicate" abstract="true" <eClassifiers xsi:type="ecore:EClass" name="AbstractSemanticPredicate" abstract="true"
eSuperTypes="#//AbstractElement"> eSuperTypes="#//AbstractElement">
@ -151,7 +151,7 @@
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GatedSemanticPredicate" eSuperTypes="#//AbstractSemanticPredicate"/> <eClassifiers xsi:type="ecore:EClass" name="GatedSemanticPredicate" eSuperTypes="#//AbstractSemanticPredicate"/>
<eClassifiers xsi:type="ecore:EClass" name="JavaCode"> <eClassifiers xsi:type="ecore:EClass" name="JavaCode">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="source" eType="ecore:EDataType ../../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString" <eStructuralFeatures xsi:type="ecore:EAttribute" name="source" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"
defaultValueLiteral="source"/> defaultValueLiteral="source"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="JavaAction" eSuperTypes="#//AbstractElement"> <eClassifiers xsi:type="ecore:EClass" name="JavaAction" eSuperTypes="#//AbstractElement">

View file

@ -5,7 +5,7 @@
forceOverwrite="true" modelName="Xtext" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" forceOverwrite="true" modelName="Xtext" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" copyrightFields="false" importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" copyrightFields="false"
editPluginID="org.eclipse.xtext.edit" editorPluginID="org.eclipse.xtext.editor" editPluginID="org.eclipse.xtext.edit" editorPluginID="org.eclipse.xtext.editor"
usedGenPackages="../../../../org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore"> usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore">
<foreignModel>Xtext.ecore</foreignModel> <foreignModel>Xtext.ecore</foreignModel>
<genPackages prefix="Xtext" basePackage="org.eclipse" disposableProviderFactory="true" <genPackages prefix="Xtext" basePackage="org.eclipse" disposableProviderFactory="true"
ecorePackage="Xtext.ecore#/"> ecorePackage="Xtext.ecore#/">