Model instance( derived from the metamodel .ecore) to Java code using xtend2 [message #705147] |
Fri, 29 July 2011 13:51 |
Chandan Messages: 12 Registered: July 2011 Location: Zurich |
Junior Member |
|
|
I'm new to xtend2.
I have defined metamodel(my.ecore) then created the model instance like (aaa.my) I would like to refer this model instance in xtend2 template to generate java code.
I donot want to use the xtext grammar to generate the (.ecore file ) since I already have one.
Is there a way how I can achieve this , i can imagine writing the mwe2 file( in a way we write .mwe file to read the model instance and the xpand template file(.xpt)) but have no idea what this file consists of.
Thanks in advance
[Updated on: Fri, 29 July 2011 13:55] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: Model instance( derived from the metamodel .ecore) to Java code using xtend2 [message #718128 is a reply to message #715722] |
Tue, 23 August 2011 10:47 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Xtend2 is compiled to java, so why not call the generated Java method?
Am 15.08.11 12:01, schrieb Chandan:
>
> Is there a way to invoke xtend2(.xtend) template from java code. I
> searched a lot but didn't find any example, though I found an example on
> how to invoke Xpand template from java code but this is not exactly what
> I want.
>
> Any help here would be appreciated.
> Thanks in advance
> ~Chandan
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Powered by
FUDForum. Page generated in 0.01977 seconds