Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:47 Go to next message
Nikolay Kasyanov is currently offline Nikolay KasyanovFriend
Messages: 30
Registered: September 2010
Location: Russia
Member
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 16:10 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
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 18:32 Go to previous message
Nikolay Kasyanov is currently offline Nikolay KasyanovFriend
Messages: 30
Registered: September 2010
Location: Russia
Member
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: Fri Apr 26 21:24:40 GMT 2024

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

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

Back to the top