Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » reuse the primitiveTypes package
reuse the primitiveTypes package [message #474273] Wed, 18 July 2007 10:23 Go to next message
Manar El-Kady is currently offline Manar El-KadyFriend
Messages: 78
Registered: July 2009
Member
Hi,

I notice in the InfrastructureLibrary that the Abstractions, Constructs,
and Basics packages import the primitiveTypes package, while in the
superstructure, the kernel package merge the primitiveTypes package.

I know that the package import allows visibility for the package
elements and the package merge allows extending its features. But, I
didn't get it clear for why the Abstraction and the Constructs import
the primitiveTypes package while the kernel package merge it?

Also, in which case, I can import the primitiveTypes package and in
which case I should merge it while building a new metamodel?


Thanks in advance,

Manar
Re: reuse the primitiveTypes package [message #474387 is a reply to message #474273] Thu, 19 July 2007 14:02 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Manar,

I spoke to Kenn about this so I'll try to regurgitate some of that
conversation.

The primitive types package is considered a building block and not a
language unit with its own namespace. If you want to create your own DSL
and use primitive types as defined in the primitve types package you should
merge it in.
Other packages like 'Constructs' import the primitiveTypes package because
'Constructs' also is not a language unit with its own namespace. Those
elements that want to use 'Constructs' as part of the definition of a
language (ie a DSL) (defining its own namesapce) would have to merge
PrimitiveTypes.

A quick search of open issues turned up these two.

http://www.omg.org/issues/uml2-rtf.open.html#Issue9878
http://www.omg.org/issues/uml2-rtf.open.html#Issue9180

Hope that helps.

- James.


"Manar El-Kady" <manar.elkady@gmail.com> wrote in message
news:f7kpnr$j2q$1@build.eclipse.org...
> Hi,
>
> I notice in the InfrastructureLibrary that the Abstractions, Constructs,
> and Basics packages import the primitiveTypes package, while in the
> superstructure, the kernel package merge the primitiveTypes package.
>
> I know that the package import allows visibility for the package
> elements and the package merge allows extending its features. But, I
> didn't get it clear for why the Abstraction and the Constructs import
> the primitiveTypes package while the kernel package merge it?
>
> Also, in which case, I can import the primitiveTypes package and in
> which case I should merge it while building a new metamodel?
>
>
> Thanks in advance,
>
> Manar
Re: reuse the primitiveTypes package [message #474397 is a reply to message #474387] Sat, 21 July 2007 06:30 Go to previous message
Manar El-Kady is currently offline Manar El-KadyFriend
Messages: 78
Registered: July 2009
Member
Really, it helps me. Thanks for you and Kenn for this detailed reply.


Manar


James Bruck wrote:
> Hi Manar,
>
> I spoke to Kenn about this so I'll try to regurgitate some of that
> conversation.
>
> The primitive types package is considered a building block and not a
> language unit with its own namespace. If you want to create your own DSL
> and use primitive types as defined in the primitve types package you should
> merge it in.
> Other packages like 'Constructs' import the primitiveTypes package because
> 'Constructs' also is not a language unit with its own namespace. Those
> elements that want to use 'Constructs' as part of the definition of a
> language (ie a DSL) (defining its own namesapce) would have to merge
> PrimitiveTypes.
>
> A quick search of open issues turned up these two.
>
> http://www.omg.org/issues/uml2-rtf.open.html#Issue9878
> http://www.omg.org/issues/uml2-rtf.open.html#Issue9180
>
> Hope that helps.
>
> - James.
>
>
> "Manar El-Kady" <manar.elkady@gmail.com> wrote in message
> news:f7kpnr$j2q$1@build.eclipse.org...
>> Hi,
>>
>> I notice in the InfrastructureLibrary that the Abstractions, Constructs,
>> and Basics packages import the primitiveTypes package, while in the
>> superstructure, the kernel package merge the primitiveTypes package.
>>
>> I know that the package import allows visibility for the package
>> elements and the package merge allows extending its features. But, I
>> didn't get it clear for why the Abstraction and the Constructs import
>> the primitiveTypes package while the kernel package merge it?
>>
>> Also, in which case, I can import the primitiveTypes package and in
>> which case I should merge it while building a new metamodel?
>>
>>
>> Thanks in advance,
>>
>> Manar
>
>
Re: reuse the primitiveTypes package [message #623906 is a reply to message #474273] Thu, 19 July 2007 14:02 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Manar,

I spoke to Kenn about this so I'll try to regurgitate some of that
conversation.

The primitive types package is considered a building block and not a
language unit with its own namespace. If you want to create your own DSL
and use primitive types as defined in the primitve types package you should
merge it in.
Other packages like 'Constructs' import the primitiveTypes package because
'Constructs' also is not a language unit with its own namespace. Those
elements that want to use 'Constructs' as part of the definition of a
language (ie a DSL) (defining its own namesapce) would have to merge
PrimitiveTypes.

A quick search of open issues turned up these two.

http://www.omg.org/issues/uml2-rtf.open.html#Issue9878
http://www.omg.org/issues/uml2-rtf.open.html#Issue9180

Hope that helps.

- James.


"Manar El-Kady" <manar.elkady@gmail.com> wrote in message
news:f7kpnr$j2q$1@build.eclipse.org...
> Hi,
>
> I notice in the InfrastructureLibrary that the Abstractions, Constructs,
> and Basics packages import the primitiveTypes package, while in the
> superstructure, the kernel package merge the primitiveTypes package.
>
> I know that the package import allows visibility for the package
> elements and the package merge allows extending its features. But, I
> didn't get it clear for why the Abstraction and the Constructs import
> the primitiveTypes package while the kernel package merge it?
>
> Also, in which case, I can import the primitiveTypes package and in
> which case I should merge it while building a new metamodel?
>
>
> Thanks in advance,
>
> Manar
Re: reuse the primitiveTypes package [message #623932 is a reply to message #474387] Sat, 21 July 2007 06:30 Go to previous message
Manar El-Kady is currently offline Manar El-KadyFriend
Messages: 78
Registered: July 2009
Member
Really, it helps me. Thanks for you and Kenn for this detailed reply.


Manar


James Bruck wrote:
> Hi Manar,
>
> I spoke to Kenn about this so I'll try to regurgitate some of that
> conversation.
>
> The primitive types package is considered a building block and not a
> language unit with its own namespace. If you want to create your own DSL
> and use primitive types as defined in the primitve types package you should
> merge it in.
> Other packages like 'Constructs' import the primitiveTypes package because
> 'Constructs' also is not a language unit with its own namespace. Those
> elements that want to use 'Constructs' as part of the definition of a
> language (ie a DSL) (defining its own namesapce) would have to merge
> PrimitiveTypes.
>
> A quick search of open issues turned up these two.
>
> http://www.omg.org/issues/uml2-rtf.open.html#Issue9878
> http://www.omg.org/issues/uml2-rtf.open.html#Issue9180
>
> Hope that helps.
>
> - James.
>
>
> "Manar El-Kady" <manar.elkady@gmail.com> wrote in message
> news:f7kpnr$j2q$1@build.eclipse.org...
>> Hi,
>>
>> I notice in the InfrastructureLibrary that the Abstractions, Constructs,
>> and Basics packages import the primitiveTypes package, while in the
>> superstructure, the kernel package merge the primitiveTypes package.
>>
>> I know that the package import allows visibility for the package
>> elements and the package merge allows extending its features. But, I
>> didn't get it clear for why the Abstraction and the Constructs import
>> the primitiveTypes package while the kernel package merge it?
>>
>> Also, in which case, I can import the primitiveTypes package and in
>> which case I should merge it while building a new metamodel?
>>
>>
>> Thanks in advance,
>>
>> Manar
>
>
Previous Topic:Package merge question
Next Topic:Package merge question
Goto Forum:
  


Current Time: Fri Apr 26 03:40:09 GMT 2024

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

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

Back to the top