Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF in plugin
EMF in plugin [message #431049] Thu, 25 June 2009 08:07 Go to next message
Samuel Mising name is currently offline Samuel Mising nameFriend
Messages: 31
Registered: July 2009
Member
Hi,

I'm a newbee in code generation and want to use the EMF framework to
generate code from my UML diagrams. Could someone point out where I could
find a step by step tutorial on what functions to call to convert my model
to an Ecore model, to create a genmodel and to generate code for it?

Also I would like to extend the conversion from UML to Ecore to support my
stereotyped UML elements (they should be tagged).

Thanks,

Samuel
Re: EMF in plugin [message #431052 is a reply to message #431049] Thu, 25 June 2009 09:51 Go to previous messageGo to next message
Samuel Mising name is currently offline Samuel Mising nameFriend
Messages: 31
Registered: July 2009
Member
Hi,

After exploring more about what EMF does, I begin to doubt it is what I
need. I would like to extend the UML2 framework so that it generates code
for my UML elements.

But now it seems to me the EMF framework actually generates code for the
UML editor, and not for the UML elements itself.

Is there a way to define what code I would like to have generated for my
UML elements itself? Or should I code this all by myself?

Samuel
Re: EMF in plugin [message #431055 is a reply to message #431052] Thu, 25 June 2009 10:49 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Samuel,

Comments below.

Samuel wrote:
> Hi,
>
> After exploring more about what EMF does, I begin to doubt it is what
> I need. I would like to extend the UML2 framework so that it generates
> code for my UML elements.
The UML framework doesn't directly generate code so there's not much to
extend...
> But now it seems to me the EMF framework actually generates code for
> the UML editor, and not for the UML elements itself.
There is a UML.ecore which is used to generated the UML model itself,
its item providers, and the editor...
>
> Is there a way to define what code I would like to have generated for
> my UML elements itself?
It would be a from scratch effort and there are several template engines
available to help.
> Or should I code this all by myself?
Pretty much you're on your own. I'm not sure what you're trying to
generate, but I assume it must be very different from what EMF generates
or must involve UML element types for which there is to corresponding
Ecore mapping and hence for which EMF generates nothing...
>
> Samuel
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:In-document non-containment references serialized as XML elements
Next Topic:EReference to another ECore File
Goto Forum:
  


Current Time: Thu Apr 25 12:30:25 GMT 2024

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

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

Back to the top