|
Re: Generating Java-classes? [message #478443 is a reply to message #478440] |
Fri, 22 May 2009 14:02 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Usul,
Actually, it's not very common to need to regenerate the source for UML2
(it's already done for you!), unless you're building your own UML-like
DSL...
The only reason I can think of for a method named "break" to appear in the
generated code (since it doesn't appear in the InteractionOperatorKind
enumeration) would be the constraint (unfortunately named "break") on the
CombinedFragment class. One way to get around this (as UML2 itself does)
would be to specify a prefix via the "Invariant Prefix" option on the UML2
generator model (UML2 itself uses "validate").
Kenn
" Usul" <skobilke@gmx.de> wrote in message
news:f28bcb58a477ab27bc33db064b99dc36$1@www.eclipse.org...
> Hi,
>
> I want to use the UML-metamodel in order to develop a modeling-tool. So I
> generated a UML.genmodel from the uml.ecore . Then I right-clicked the
> genmodel and chose "Generate Model Code".
>
> Unfortunatly the generated classes contain one error. That is located in
> the generated CombinedFragment.java, where a method was created named
> "break", which is obviously a Java-keyword. "break" is the name of an
> operation in the CombinedFragment-type in the metamodel.
>
> So my question is, how can I fix it? Or am I going in a wrong direction?
> I guess this is a noob-question, because people probably generate the
> Java-classes from the model all the time, right?
>
>
> thank you
>
>
>
|
|
|
|
|
Re: Generating Java-classes? [message #627621 is a reply to message #478440] |
Fri, 22 May 2009 14:02 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Usul,
Actually, it's not very common to need to regenerate the source for UML2
(it's already done for you!), unless you're building your own UML-like
DSL...
The only reason I can think of for a method named "break" to appear in the
generated code (since it doesn't appear in the InteractionOperatorKind
enumeration) would be the constraint (unfortunately named "break") on the
CombinedFragment class. One way to get around this (as UML2 itself does)
would be to specify a prefix via the "Invariant Prefix" option on the UML2
generator model (UML2 itself uses "validate").
Kenn
" Usul" <skobilke@gmx.de> wrote in message
news:f28bcb58a477ab27bc33db064b99dc36$1@www.eclipse.org...
> Hi,
>
> I want to use the UML-metamodel in order to develop a modeling-tool. So I
> generated a UML.genmodel from the uml.ecore . Then I right-clicked the
> genmodel and chose "Generate Model Code".
>
> Unfortunatly the generated classes contain one error. That is located in
> the generated CombinedFragment.java, where a method was created named
> "break", which is obviously a Java-keyword. "break" is the name of an
> operation in the CombinedFragment-type in the metamodel.
>
> So my question is, how can I fix it? Or am I going in a wrong direction?
> I guess this is a noob-question, because people probably generate the
> Java-classes from the model all the time, right?
>
>
> thank you
>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04660 seconds