| [news.eclipse.modeling.mdt.uml2] Re: Flatten the packaging structure like in the UML2 metamodel |
Kenn,
Timothy
Timothy,
There is a utility in UML2, the package merger, which we use to accomplish this. In order to use it, though, you would need to use UML as the source of your model instead of using Ecore directly, as there is no support for this in EMF/Ecore.
If you take a look the source model for UML2, you'll see how the model needs to be structured. Basically, you create an empty UML package that merges the packages who content you want it to contain. Then, before you load/reload your EMF model, you run the package merge utility (either progammatically or via the sample UML editor).
Kenn
"Timothy Marc" <timothymarc@xxxxxxxxxx> wrote in message news:h0am75$hcp$1@xxxxxxxxxxxxxxxxxxxxHey all,
i've to maintain an Ecore meta-model, with was initially created with a lot of packages regarding to structural aspects. But it is very cumbersome to have all these different Factorys, Packages and Litetals... my question is: Is there a built-in possibility to flatten the Ecore structure like it is done by the UML2 meta-model?
I'm posting explicitly here, because you guys have already done it.
Thanks a lot
Timothy