Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF for code generation in EMF application
icon5.gif  EMF for code generation in EMF application [message #821395] Thu, 15 March 2012 09:53 Go to next message
david borsodi is currently offline david borsodiFriend
Messages: 19
Registered: July 2009
Junior Member
Hello Everyone,

I'm trying to develop an UML tool like application where you can create models and also generate code from them. I'm creating the metamodel with EMF and I'd like to use it (actually emf4cpp) for generation as well inside the application. Is it possible to painlessly integrate only the code generator subpart of the EMF bundle into an app and to customize it?
If yes, any pointers are appreciated.

thanks
david

[Updated on: Thu, 15 March 2012 10:07]

Report message to a moderator

Re: EMF for code generation in EMF application [message #821417 is a reply to message #821395] Thu, 15 March 2012 10:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
David,

Comments below.

On 15/03/2012 10:53 AM, david borsodi wrote:
> Hello Everyone,
>
> I'm trying to develop an UML tool like application where you can
> create models and also generate code from it. I'm creating the
> metamodel with EMF and I'd like to use it (actually emf4cpp) for
> generation as well inside the application. Is it possible to
> painlessly integrate only the code generator subpart of the EMF bundle
> into an app and customize customize it? If yes, any pointers are
> appreciated.
Hmmm. I'm not sure I understand. EMF provides support for generating
Java code from Ecore instances, but if you define your own model Foo,
you can't reuse the generator for Ecore.
>
> thanks
> david


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF for code generation in EMF application [message #822962 is a reply to message #821417] Sat, 17 March 2012 15:13 Go to previous messageGo to next message
david borsodi is currently offline david borsodiFriend
Messages: 19
Registered: July 2009
Junior Member
Ed,

thanks for the reply.
I know, that by default you can't reuse the generator, but this means you don't even suggest to take is as a basis for a custom code generator? If I remember correctly the project is open source so I could take and modify it.
Re: EMF for code generation in EMF application [message #822970 is a reply to message #822962] Sat, 17 March 2012 15:25 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
David,

Comments below.

On 17/03/2012 4:13 PM, david borsodi wrote:
> Ed,
> thanks for the reply.
> I know, that by default you can't reuse the generator, but this means
> you don't even suggest to take is as a basis for a custom code generator?
It's not entirely clear what you mean by "basis".
> If I remember correctly the project is open source so I could take and
> modify it.
Yes of course you can look at how the code generator for Ecore is
designed and fashion your design with a similar approach. Probably
you'll want to use something like Xtend or Acceleo as your template
language.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Listen to part of Model
Next Topic:Synchronous Collaborative Modeling Tools
Goto Forum:
  


Current Time: Tue Sep 24 17:42:55 GMT 2024

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

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

Back to the top