Skip to main content


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 09:58 Go to next message
Axel Berres is currently offline Axel BerresFriend
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 10:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Generatin code from ecore models [message #1115617 is a reply to message #1115607] Tue, 24 September 2013 10:37 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
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] Enum serialization and second-level cache enabled
Next Topic:Very basic question regarding EMF/Ecore in Kepler, Interface and Package problems
Goto Forum:
  


Current Time: Thu Apr 25 21:16:18 GMT 2024

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

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

Back to the top