Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Using MWE2 to generate Ecore to java?
Using MWE2 to generate Ecore to java? [message #653236] Tue, 08 February 2011 22:56 Go to next message
Jason Pell is currently offline Jason PellFriend
Messages: 55
Registered: February 2011
Member
Hi,

Since I have mwe2 successfully building an xtext grammer -> ecore -> java at the command line without eclipse headless I am hoping that I might be able to make use of xtext generators / strutures, whatever to do the same for ecore -> java (that is no xtext)

Since the xtext libs obviously have managed to execute the ecore generator without eclipse being present it must be possible.

Any ideas how I might do this?

Thanks
Jason
Re: Using MWE2 to generate Ecore to java? [message #653316 is a reply to message #653236] Wed, 09 February 2011 10:36 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Have a look at org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment

Am 08.02.11 23:56, schrieb Jason Pell:
> Hi,
>
> Since I have mwe2 successfully building an xtext grammer -> ecore ->
> java at the command line without eclipse headless I am hoping that I
> might be able to make use of xtext generators / strutures, whatever to
> do the same for ecore -> java (that is no xtext)
>
> Since the xtext libs obviously have managed to execute the ecore
> generator without eclipse being present it must be possible.
>
> Any ideas how I might do this?
>
> Thanks
> Jason


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: Using MWE2 to generate Ecore to java? [message #653514 is a reply to message #653316] Thu, 10 February 2011 04:11 Go to previous messageGo to next message
Jason Pell is currently offline Jason PellFriend
Messages: 55
Registered: February 2011
Member
Hi,

I did take a look at that, but what I was not so sure of was how to generate emf without xtext. Can I do away with the language {} block?
Re: Using MWE2 to generate Ecore to java? [message #653515 is a reply to message #653514] Thu, 10 February 2011 04:31 Go to previous message
Jason Pell is currently offline Jason PellFriend
Messages: 55
Registered: February 2011
Member
I am using the standalone generator directly instead. I can get this working for a single ecore / genmodel, but emf is not very friendly about referencing multiple genmodels.

I think I will swing over to the emf forum now to ask my question.

Thanks
Jason
Previous Topic:Rebuild after creating new project
Next Topic:XText Mixins
Goto Forum:
  


Current Time: Thu May 09 15:28:35 GMT 2024

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

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

Back to the top