Skip to main content



      Home
Home » Modeling » UML2 » how to generate EMF from UML.ecore
how to generate EMF from UML.ecore [message #476782] Mon, 17 December 2007 17:20 Go to next message
Eclipse UserFriend
Originally posted by: martin.nadeau.scg.ulaval.ca

Hello,

I'm trying to generate EMF model from uml.ecore and i got problems. I'm
able to generate UML.genmodel but when i generate "model Code", I got
errors saying "Duplicate method xxx in type yyy" and others saying
"syntax error on token 'break', identifier expected."

I use UML.ecore found in CVS.

Any idea to resolve this? If not, How can i extend UML metamodel (i
don't want to use profile)?

Thanks.
Re: how to generate EMF from UML.ecore [message #476789 is a reply to message #476782] Wed, 19 December 2007 17:21 Go to previous message
Eclipse UserFriend
Martin,

You need to use the UML2 code generator, which extends the EMF code
generator with support for concepts that are common in UML models (e.g.
redefinitions, subsets, derived unions). To do so, it should be possible to
can either create your Ecore model and generator model from a UML model
(instead of directly from Ecore) or by changing the namespace declaration in
your generator model from
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" to
xmlns:genmodel="http://www.eclipse.org/uml2/1.1.0/GenModel".

Kenn

"Martin Nadeau" <martin.nadeau@scg.ulaval.ca> wrote in message
news:fk6sne$53a$1@build.eclipse.org...
> Hello,
>
> I'm trying to generate EMF model from uml.ecore and i got problems. I'm
> able to generate UML.genmodel but when i generate "model Code", I got
> errors saying "Duplicate method xxx in type yyy" and others saying "syntax
> error on token 'break', identifier expected."
>
> I use UML.ecore found in CVS.
>
> Any idea to resolve this? If not, How can i extend UML metamodel (i don't
> want to use profile)?
>
> Thanks.
Re: how to generate EMF from UML.ecore [message #625764 is a reply to message #476782] Wed, 19 December 2007 17:21 Go to previous message
Eclipse UserFriend
Martin,

You need to use the UML2 code generator, which extends the EMF code
generator with support for concepts that are common in UML models (e.g.
redefinitions, subsets, derived unions). To do so, it should be possible to
can either create your Ecore model and generator model from a UML model
(instead of directly from Ecore) or by changing the namespace declaration in
your generator model from
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" to
xmlns:genmodel="http://www.eclipse.org/uml2/1.1.0/GenModel".

Kenn

"Martin Nadeau" <martin.nadeau@scg.ulaval.ca> wrote in message
news:fk6sne$53a$1@build.eclipse.org...
> Hello,
>
> I'm trying to generate EMF model from uml.ecore and i got problems. I'm
> able to generate UML.genmodel but when i generate "model Code", I got
> errors saying "Duplicate method xxx in type yyy" and others saying "syntax
> error on token 'break', identifier expected."
>
> I use UML.ecore found in CVS.
>
> Any idea to resolve this? If not, How can i extend UML metamodel (i don't
> want to use profile)?
>
> Thanks.
Previous Topic:inStructuredNode reference not saved
Next Topic:A question about the code
Goto Forum:
  


Current Time: Mon Jul 28 17:46:28 EDT 2025

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

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

Back to the top