Skip to main content


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 10:25 Go to next message
Adalbert Gorecki is currently offline Adalbert GoreckiFriend
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 08:29 Go to previous message
Adalbert Gorecki is currently offline Adalbert GoreckiFriend
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: Tue Apr 23 15:21:49 GMT 2024

Powered by FUDForum. Page generated in 0.02805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top