EMF for code generation in EMF application [message #821395] |
Thu, 15 March 2012 09:53 |
david borsodi 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 #822970 is a reply to message #822962] |
Sat, 17 March 2012 15:25 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03916 seconds