Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [xtend2][ecore] Can I generate from ecore models using Xtend2?
[xtend2][ecore] Can I generate from ecore models using Xtend2? [message #676591] Sun, 05 June 2011 10:47 Go to next message
Eclipse UserFriend
As far as I understood, when configuring MWE2 for code generation with Xtend2 one should specify Xtext grammar.

Can I somehow use Ecore metamodel instead of grammar (I want to generate code from XMI models, not from text ones).
(no subject) [message #676598 is a reply to message #676591] Sun, 05 June 2011 12:10 Go to previous messageGo to next message
Eclipse UserFriend
Unlike Xpand and the old Xtend, Xtend 2 compiles and runs against Java
types. So as long as you have generated Java code for your ecore model
you can write against them.
If you use dynamic EMF you'll (just as in Java) have to deal with the
generic EMF API.

Sven

Am 6/5/11 4:47 PM, schrieb forums-noreply@eclipse.org:
> As far as I understood, when configuring MWE2 for code generation with
> Xtend2 one should specify Xtext grammar.
>
> Can I somehow use Ecore metamodel instead of grammar (I want to generate
> code from XMI models, not from text ones).


--
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Re: (no subject) [message #676624 is a reply to message #676598] Sun, 05 June 2011 14:32 Go to previous message
Eclipse UserFriend
Thx for reply!
Previous Topic:[Acceleo] Ref: Bug 319375 - Using ant task with model referring to UML Primitive types
Next Topic:[Xtext] call generator from the editor
Goto Forum:
  


Current Time: Sun Jul 06 05:28:41 EDT 2025

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

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

Back to the top