Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Generatin code from ecore models
Generatin code from ecore models [message #1115594] Tue, 24 September 2013 05:58 Go to next message
Axel Berres is currently offline Axel Berres
Messages: 1
Registered: June 2013
Junior Member
Hi,

I want to generate my own code from an ecore model. Therefore I would
annotate code like GenModel does. I look over the most articles
published in the web but didn't found an article especaly about this toppic.

Reading an ecore model and generating directly code considering the
attributes or references of the objects.

Thanks
Axel
Re: Generatin code from ecore models [message #1115607 is a reply to message #1115594] Tue, 24 September 2013 06:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25218
Registered: July 2009
Senior Member
Axel,

You can look at how EMF's existing code generator works, and I think
the Texo project has a code generator for Ecore as well, but that's the
best I can suggest because no articles are written for how you might
write a different code generator.


On 24/09/2013 11:58 AM, Axel Berres wrote:
> Hi,
>
> I want to generate my own code from an ecore model. Therefore I would
> annotate code like GenModel does. I look over the most articles
> published in the web but didn't found an article especaly about this
> toppic.
>
> Reading an ecore model and generating directly code considering the
> attributes or references of the objects.
>
> Thanks
> Axel
Re: Generatin code from ecore models [message #1115617 is a reply to message #1115607] Tue, 24 September 2013 06:37 Go to previous message
Martin Taal is currently offline Martin Taal
Messages: 5162
Registered: July 2009
Senior Member
Hi Axel,
See this wiki page for some info on how to (completely) override the EMF Texo code generation with your own templates:
http://wiki.eclipse.org/Texo/Template_Overriding

gr. Martin

On 09/24/2013 12:17 PM, Ed Merks wrote:
> Axel,
>
> You can look at how EMF's existing code generator works, and I think the Texo project has a code generator for Ecore as
> well, but that's the best I can suggest because no articles are written for how you might write a different code generator.
>
>
> On 24/09/2013 11:58 AM, Axel Berres wrote:
>> Hi,
>>
>> I want to generate my own code from an ecore model. Therefore I would annotate code like GenModel does. I look over
>> the most articles published in the web but didn't found an article especaly about this toppic.
>>
>> Reading an ecore model and generating directly code considering the attributes or references of the objects.
>>
>> Thanks
>> Axel
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Previous Topic:[CDO] CDO Server in daemon mode with start, stop restart
Next Topic:Re: [JFace Databinding] Bind EMap value to Text
Goto Forum:
  


Current Time: Mon Oct 07 08:10:08 EDT 2013

Powered by FUDForum. Page generated in 0.02220 seconds