Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » How to use XMI model files as input for Xpand?
How to use XMI model files as input for Xpand? [message #481276] Thu, 20 August 2009 06:25 Go to next message
Adalbert Gorecki is currently offline Adalbert Gorecki
Messages: 10
Registered: July 2009
Junior Member
Hi everyone,

I used ATL to transform a source model into a target model. The metamodels
were defined with Xtext. The output of the transformation is a XMI model
file from which I want to generate my code. I would like to use Xpand for
my code generation but I can not figure out how to tell the
org.eclipse.xpand2.Generator workflow component to use my XMI file as
input.

Does anyone have a clue how to configure the generator? Or do I need some
other workflow component?

Regards,
Adalbert
Re: How to use XMI model files as input for Xpand? [message #481749 is a reply to message #481276] Mon, 24 August 2009 04:29 Go to previous message
Adalbert Gorecki is currently offline Adalbert Gorecki
Messages: 10
Registered: July 2009
Junior Member
Ok, I found it. It was so simple that I didn't think of it in the first
place.

Just let the MweReader know, where your XMI-File is ;)
<component class="org.eclipse.xtext.MweReader"
uri="classpath:/model/myOwnModel.xmi">
<!-- this class will be generated by the xtext generator -->
<register class="org.xtext.example.MyAgentStandaloneSetup"/>
</component>

Greetings,
Adalbert
Previous Topic:Protected Regions in Acceleo for Java
Next Topic:Galileo performance twice as slow?
Goto Forum:
  


Current Time: Wed Aug 20 08:46:29 EDT 2014

Powered by FUDForum. Page generated in 0.02581 seconds