[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: Generating Java-classes?

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@xxxxxx> wrote in message 
news:f28bcb58a477ab27bc33db064b99dc36$1@xxxxxxxxxxxxxxxxxx
> 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
>
>
>