|
Re: [xtend] bidrectional references not set with two ecore models [message #626001 is a reply to message #625843] |
Wed, 22 September 2010 11:21 |
|
Hello Richard,
i cannot reproduce this using this workflow and extension:
<workflow>
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
<registerEcoreFile value="src/metamodel/base.ecore" />
<registerEcoreFile value="src/metamodel/extended.ecore" />
</bean>
<component class="org.eclipse.xtend.XtendComponent">
<metaModel class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel" />
<invoke value="template::test::getThePPP()" />
<outputSlot value="model" />
</component>
<component class="org.eclipse.emf.mwe.utils.Writer">
<uri value="test.xmi" />
<modelSlot value="model" />
</component>
</workflow>
import Extended;
Base::PPP getThePPP() :
let bbb = new BBB :
bbb.setPpp(new Base::PPP) ->
bbb.ppp;
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
|
|
|
Re: [xtend] bidrectional references not set with two ecore models [message #626213 is a reply to message #625843] |
Wed, 22 September 2010 12:48 |
Richard Wood Messages: 29 Registered: January 2010 |
Junior Member |
|
|
Thanks a lot Christian
It was the workflow definition. The registering of ecore files did the trick.
I thought it was also possible to achieve the same result with multiple beans.
<bean id="mmExtended"
class="org.eclipse.xtend.typesystem.emf.EmfMetaModel">
<metaModelFile value="Extended.ecore"/>
</bean>
<bean id="mmBase"
class="org.eclipse.xtend.typesystem.emf.EmfMetaModel">
<metaModelFile value="Base.ecore"/>
</bean>
<component class="org.eclipse.xtend.XtendComponent">
<metaModel idRef="mmExtended"/>
<metaModel idRef="mmBase"/>
<invoke value="template::test::getThePPP()" />
<outputSlot value="model" />
</component>
Is there a possible solution with this kind of setup?
[Updated on: Wed, 22 September 2010 12:48] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02942 seconds