Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Flatten the packaging structure like in the UML2 metamodel
Flatten the packaging structure like in the UML2 metamodel [message #478497] Fri, 05 June 2009 08:53 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey 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
Re: Flatten the packaging structure like in the UML2 metamodel [message #478506 is a reply to message #478497] Tue, 09 June 2009 15:43 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1618
Registered: July 2009
Senior Member
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@freenet.de> wrote in message
news:h0am75$hcp$1@build.eclipse.org...
> Hey 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
Re: Flatten the packaging structure like in the UML2 metamodel [message #478513 is a reply to message #478506] Wed, 10 June 2009 07:17 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Kenn,

that sounds promising and in fact, my source model is an UML model, so i
will try the package merger... thanks so far.

Timothy

Kenn Hussey schrieb:
> 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@freenet.de> wrote in message
> news:h0am75$hcp$1@build.eclipse.org...
>> Hey 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
>
>
Re: Flatten the packaging structure like in the UML2 metamodel [message #627683 is a reply to message #478497] Tue, 09 June 2009 15:43 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1618
Registered: July 2009
Senior Member
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@freenet.de> wrote in message
news:h0am75$hcp$1@build.eclipse.org...
> Hey 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
Re: Flatten the packaging structure like in the UML2 metamodel [message #627690 is a reply to message #478506] Wed, 10 June 2009 07:17 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Kenn,

that sounds promising and in fact, my source model is an UML model, so i
will try the package merger... thanks so far.

Timothy

Kenn Hussey schrieb:
> 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@freenet.de> wrote in message
> news:h0am75$hcp$1@build.eclipse.org...
>> Hey 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
>
>
Previous Topic:assigning a default value to an inherited property
Next Topic:Re: Creating Stereotype extending AssociationEnd
Goto Forum:
  


Current Time: Sat Nov 22 10:28:16 GMT 2014

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

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