Commit f0bee6bc authored by Dongyue Mou's avatar Dongyue Mou
Browse files

fixed ecore relative-reference problem

parent 07ef6b17
......@@ -5,6 +5,11 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.fortiss.ide.dev_tools.emf.builder.EcoreBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
......
......@@ -4,7 +4,7 @@
@version $Rev$
@ConQAT.Rating GREEN Hash: 5D3FDF5644EE1789C9DEE0D736B9FA3C
-->
<project name="org.fortiss.af3.expression" default="generate-ecore" basedir="..">
<project name="org.fortiss.af3.generator.common" default="generate-ecore" basedir="..">
<property name="model.name" value="languages" />
<property name="model.project" value="org.fortiss.af3.generator.common" />
......
......@@ -8,12 +8,13 @@
editorPluginClass="org.fortiss.af3.generator.common.model.presentation.ModelEditorPlugin"
testsDirectory="/org.fortiss.af3.generator.common.tests/test-src" importerID="org.eclipse.emf.importer.ecore"
containmentProxies="true" arrayAccessors="true" complianceLevel="5.0" copyrightFields="false"
language="" usedGenPackages="platform:/plugin/org.fortiss.af3.project/model/project.genmodel#//model platform:/plugin/org.fortiss.tooling.kernel/model/kernel.genmodel#//model">
language="" usedGenPackages="platform:/plugin/org.fortiss.tooling.kernel/model/kernel.genmodel#//model">
<foreignModel>languages.ecore</foreignModel>
<genPackages prefix="AF3GeneratorCommonLanguages" basePackage="org.fortiss.af3.generator.common"
disposableProviderFactory="true" ecorePackage="languages.ecore#/">
<nestedGenPackages prefix="AF3GeneratorCommonLanguagesSource" basePackage="org.fortiss.af3.generator.common.model"
disposableProviderFactory="true" ecorePackage="languages.ecore#//source">
<genDataTypes ecoreDataType="languages.ecore#//source/IOException"/>
<genClasses ecoreClass="languages.ecore#//source/SourcePackage">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute languages.ecore#//source/SourcePackage/baseLocation"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference languages.ecore#//source/SourcePackage/subPackages"/>
......@@ -24,6 +25,9 @@
<genOperations ecoreOperation="languages.ecore#//source/SourcePackage/writeContentToLocation">
<genParameters ecoreParameter="languages.ecore#//source/SourcePackage/writeContentToLocation/rootLocation"/>
</genOperations>
<genOperations ecoreOperation="languages.ecore#//source/SourcePackage/getSubPackage">
<genParameters ecoreParameter="languages.ecore#//source/SourcePackage/getSubPackage/name"/>
</genOperations>
</genClasses>
<genClasses ecoreClass="languages.ecore#//source/SourceUnit">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute languages.ecore#//source/SourceUnit/name"/>
......@@ -50,10 +54,16 @@
<genEnumLiterals ecoreEnumLiteral="languages.ecore#//c/Modifier/STATIC"/>
<genEnumLiterals ecoreEnumLiteral="languages.ecore#//c/Modifier/NONE"/>
</genEnums>
<genClasses ecoreClass="languages.ecore#//c/HeaderFile"/>
<genClasses ecoreClass="languages.ecore#//c/ImplementationFile"/>
<genClasses ecoreClass="languages.ecore#//c/HeaderFile">
<genOperations ecoreOperation="languages.ecore#//c/HeaderFile/toFormattedSource"/>
</genClasses>
<genClasses ecoreClass="languages.ecore#//c/ImplementationFile">
<genOperations ecoreOperation="languages.ecore#//c/ImplementationFile/toFormattedSource"/>
</genClasses>
<genClasses ecoreClass="languages.ecore#//c/PreProcessorDefine"/>
<genClasses ecoreClass="languages.ecore#//c/Include"/>
<genClasses ecoreClass="languages.ecore#//c/Include">
<genOperations ecoreOperation="languages.ecore#//c/Include/toString"/>
</genClasses>
<genClasses ecoreClass="languages.ecore#//c/FunctionDeclaration">
<genFeatures notify="false" createChild="false" propertySortChoices="true"
ecoreFeature="ecore:EReference languages.ecore#//c/FunctionDeclaration/definition"/>
......@@ -62,25 +72,24 @@
<genFeatures notify="false" createChild="false" propertySortChoices="true"
ecoreFeature="ecore:EReference languages.ecore#//c/FunctionDefinition/declaration"/>
</genClasses>
</nestedGenPackages>
<nestedGenPackages prefix="AF3GeneratorCommonLanguagesImperative" basePackage="org.fortiss.af3.generator.common.model"
disposableProviderFactory="true" ecorePackage="languages.ecore#//imperative">
<genClasses ecoreClass="languages.ecore#//imperative/Program">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference languages.ecore#//imperative/Program/types"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference languages.ecore#//imperative/Program/variables"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference languages.ecore#//imperative/Program/procedures"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference languages.ecore#//imperative/Program/subPrograms"/>
</genClasses>
<genClasses ecoreClass="languages.ecore#//imperative/Procedure">
<genFeatures notify="false" createChild="false" propertySortChoices="true"
ecoreFeature="ecore:EReference languages.ecore#//imperative/Procedure/type"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference languages.ecore#//imperative/Procedure/parameters"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference languages.ecore#//imperative/Procedure/body"/>
</genClasses>
<genClasses ecoreClass="languages.ecore#//imperative/Variable">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference languages.ecore#//imperative/Variable/type"/>
<genClasses ecoreClass="languages.ecore#//c/CSourcePackage">
<genOperations ecoreOperation="languages.ecore#//c/CSourcePackage/getIncGenPackage"/>
<genOperations ecoreOperation="languages.ecore#//c/CSourcePackage/getSrcGenPackage"/>
<genOperations ecoreOperation="languages.ecore#//c/CSourcePackage/getIncPackage"/>
<genOperations ecoreOperation="languages.ecore#//c/CSourcePackage/getSrcPackage"/>
</genClasses>
<genClasses ecoreClass="languages.ecore#//imperative/TypeDefinition"/>
<genClasses ecoreClass="languages.ecore#//c/TypeDeclaration"/>
<nestedGenPackages prefix="Types" basePackage="org.fortiss.af3.generator.common.model.c"
disposableProviderFactory="true" ecorePackage="languages.ecore#//c/types">
<genClasses ecoreClass="languages.ecore#//c/types/CEnumerationDeclaration">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference languages.ecore#//c/types/CEnumerationDeclaration/members"/>
<genOperations ecoreOperation="languages.ecore#//c/types/CEnumerationDeclaration/toString"/>
</genClasses>
<genClasses ecoreClass="languages.ecore#//c/types/CEnumerationMember">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute languages.ecore#//c/types/CEnumerationMember/name"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute languages.ecore#//c/types/CEnumerationMember/value"/>
</genClasses>
</nestedGenPackages>
</nestedGenPackages>
</genPackages>
</genmodel:GenModel>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment