Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Problem with XPAND2 generator after migration to mwe
icon9.gif  Problem with XPAND2 generator after migration to mwe [message #512909] Mon, 08 February 2010 05:45 Go to previous message
Carmen  is currently offline Carmen
Messages: 9
Registered: February 2010
Junior Member
Hello all,

I'm trying to solve an error since days, and I'm really running out of ideas on
what can be wrong. I have a project and I'm migrating to Galileo and of course,
migrating from oaw to mwe.

I tried to follow the general template provided. My problem is with my workflow, I cannot
generate any file using the xpand generator. I got the following error:

[ERROR]: No Definition 'example::example::Foo::Root for amm::DecisionModel' found!
(Element: EXPAND example::example::Foo::Root FOR model;
Reported by: Generator: generating 'example::example::Foo::Root FOR model'
=> E:/Migration-Galileo/Workspaces/runtime-EclipseApplication/e xample/example/)

My workflow is:
<?xml version="1.0"?>
<workflow>
<property name="model" value="example/example/a.am" />

<!-- load model and store it in slot 'model' -->
<component class="org.eclipse.emf.mwe.utils.Reader">
<uri value="platform:/resource/${model}" />
<modelSlot value="model" />
<firstElementOnly value="true"/>
</component>

<component id="generator" class="org.eclipse.xpand2.Generator">
<fileEncoding value="ISO-8859-1"/>
<metaModel id="mm" class="org.eclipse.xtend.typesystem.emf.EmfMetaModel">
<metaModelPackage value="myproject.amm.AmmPackage"/>
</metaModel>
<expand value="example::example::Foo::Root FOR model"/>
<outlet path="${srcGenPath}/" />
</component>
</workflow>

I'm really lost! I tryed to follow the trace and what I could see is that the configuration is ok
It seems that it can find and register the metamodel, but when it tries to find the template
it cannot find anything. The paths should be ok, since they can work with the previous oaw version.

Someone have any idea what can be wrong ?

Cheers,

Carmen

 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Topcased UML Profiles and Spring Cartridge
Next Topic:Any way to generate only one file?
Goto Forum:
  


Current Time: Tue May 21 03:42:01 EDT 2013

Powered by FUDForum. Page generated in 0.01753 seconds