Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Use of UML Primitive Types
Use of UML Primitive Types [message #474422] Wed, 28 May 2008 10:03 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hello all,

i have a problem cooncerning the usage of uml primitive types in my class
model. I've created it with the uml2 class-diagram edior. I modeled a clas
with only one attribute, which i want to type as UMLPrimitive String. But i
had no access to the UMLPrimitiveTypes. I remember, that i had used these
types in a class model a long time ago, but know, there are not available.

I think this depends on the missing Import of the UMLMetamodel profile or
something similiar, but i'm not quite sure whether a) this is correct and b)
if oit is, how to solve the problem.

Thanks for any hint.
Timothy
Re: Use of UML Primitive Types [message #474423 is a reply to message #474422] Wed, 28 May 2008 12:36 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Timothy Marc wrote:
> Hello all,
>
> i have a problem cooncerning the usage of uml primitive types in my class
> model. I've created it with the uml2 class-diagram edior. I modeled a clas
> with only one attribute, which i want to type as UMLPrimitive String. But i
> had no access to the UMLPrimitiveTypes. I remember, that i had used these
> types in a class model a long time ago, but know, there are not available.
>
> I think this depends on the missing Import of the UMLMetamodel profile or
> something similiar, but i'm not quite sure whether a) this is correct and b)
> if oit is, how to solve the problem.
>
> Thanks for any hint.
> Timothy

You can load the model library that contains the primitive types by doing
Load Resource... pathmap:// and a path I don't remember any more.

However you could also create your own primitive types that would simply have
the same "meaning" as the UML ones. In the tree editor you can just do "UML
Editor -> generate -> UMP Primitive Types, which will do the work for you.

Felix
Re: Use of UML Primitive Types [message #474424 is a reply to message #474422] Wed, 28 May 2008 15:59 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Timothy,

UMLPrimitiveTypes library should be loaded by default. Boolean, String, UnlimitedNatural
and Integer are be imported automatically in every newly-created diagram.They
are shown in the left-top of the diagram in the secondary diagram node. Compartment
for element imports is collapsed by default now(it was expanded before).
But if one expand it, these four elements should be displayed.
Timothy, if compartment is expanded, is there anything in it? If not, is
there anything in error log? Could you please also tell me what UML2Tools
build do you use?

Thank you,
Tatiana.

> Hello all,
>
> i have a problem cooncerning the usage of uml primitive types in my
> class model. I've created it with the uml2 class-diagram edior. I
> modeled a clas with only one attribute, which i want to type as
> UMLPrimitive String. But i had no access to the UMLPrimitiveTypes. I
> remember, that i had used these types in a class model a long time
> ago, but know, there are not available.
>
> I think this depends on the missing Import of the UMLMetamodel profile
> or something similiar, but i'm not quite sure whether a) this is
> correct and b) if oit is, how to solve the problem.
>
> Thanks for any hint.
> Timothy
Re: Use of UML Primitive Types [message #474426 is a reply to message #474424] Thu, 29 May 2008 09:40 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

thanks for reply. I've reload the Profile by "Load Ressource" functionality
like Felix said.
One questions concering pathmaps:
I load the resource by adding
pathmap://UML_LIBRARY/UMLPrimitiveTypes.library.uml
IMHO, that points to a special plugin (org.eclipse.uml2.resources). But, if
i want to load an own type library, e.g. C# Types or something else,
how to locate this? Or even better: to what directory does pathmap refer? To
the current workspace?

Thanks a lot. Bit by bit my startproblems with this wonderful but
complicated emf/ecore are melting :)
Timothy

"Tatiana Fesenko" <tatiana.fesenko@borland.com> schrieb im Newsbeitrag
news:6785c5264cb38ca8f03a6e7b9bf@news.eclipse.org...
> Hi Timothy,
>
> UMLPrimitiveTypes library should be loaded by default. Boolean, String,
> UnlimitedNatural and Integer are be imported automatically in every
> newly-created diagram.They are shown in the left-top of the diagram in the
> secondary diagram node. Compartment for element imports is collapsed by
> default now(it was expanded before). But if one expand it, these four
> elements should be displayed. Timothy, if compartment is expanded, is
> there anything in it? If not, is there anything in error log? Could you
> please also tell me what UML2Tools build do you use?
> Thank you,
> Tatiana.
>
>> Hello all,
>>
>> i have a problem cooncerning the usage of uml primitive types in my
>> class model. I've created it with the uml2 class-diagram edior. I
>> modeled a clas with only one attribute, which i want to type as
>> UMLPrimitive String. But i had no access to the UMLPrimitiveTypes. I
>> remember, that i had used these types in a class model a long time
>> ago, but know, there are not available.
>>
>> I think this depends on the missing Import of the UMLMetamodel profile
>> or something similiar, but i'm not quite sure whether a) this is
>> correct and b) if oit is, how to solve the problem.
>>
>> Thanks for any hint.
>> Timothy
>
>
Re: Use of UML Primitive Types [message #474432 is a reply to message #474426] Thu, 05 June 2008 15:16 Go to previous message
Raphael is currently offline RaphaelFriend
Messages: 47
Registered: July 2009
Member
Hello Everybody!

IŽm having almost the same doubt...

I have my own PrimitiveTypes and I want to use just them when I compile my
Plug-in.

I have an file called uml.ecore. This uml.ecore has a class called
TypedElemet with a property called type. I want to fill this property type
with only my PrimitiveTypes.

What should I do?!?

Thanks,
Raphael
Re: Use of UML Primitive Types [message #619829 is a reply to message #474422] Wed, 28 May 2008 12:36 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Timothy Marc wrote:
> Hello all,
>
> i have a problem cooncerning the usage of uml primitive types in my class
> model. I've created it with the uml2 class-diagram edior. I modeled a clas
> with only one attribute, which i want to type as UMLPrimitive String. But i
> had no access to the UMLPrimitiveTypes. I remember, that i had used these
> types in a class model a long time ago, but know, there are not available.
>
> I think this depends on the missing Import of the UMLMetamodel profile or
> something similiar, but i'm not quite sure whether a) this is correct and b)
> if oit is, how to solve the problem.
>
> Thanks for any hint.
> Timothy

You can load the model library that contains the primitive types by doing
Load Resource... pathmap:// and a path I don't remember any more.

However you could also create your own primitive types that would simply have
the same "meaning" as the UML ones. In the tree editor you can just do "UML
Editor -> generate -> UMP Primitive Types, which will do the work for you.

Felix
Re: Use of UML Primitive Types [message #619831 is a reply to message #474422] Wed, 28 May 2008 15:59 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Timothy,

UMLPrimitiveTypes library should be loaded by default. Boolean, String, UnlimitedNatural
and Integer are be imported automatically in every newly-created diagram.They
are shown in the left-top of the diagram in the secondary diagram node. Compartment
for element imports is collapsed by default now(it was expanded before).
But if one expand it, these four elements should be displayed.
Timothy, if compartment is expanded, is there anything in it? If not, is
there anything in error log? Could you please also tell me what UML2Tools
build do you use?

Thank you,
Tatiana.

> Hello all,
>
> i have a problem cooncerning the usage of uml primitive types in my
> class model. I've created it with the uml2 class-diagram edior. I
> modeled a clas with only one attribute, which i want to type as
> UMLPrimitive String. But i had no access to the UMLPrimitiveTypes. I
> remember, that i had used these types in a class model a long time
> ago, but know, there are not available.
>
> I think this depends on the missing Import of the UMLMetamodel profile
> or something similiar, but i'm not quite sure whether a) this is
> correct and b) if oit is, how to solve the problem.
>
> Thanks for any hint.
> Timothy
Re: Use of UML Primitive Types [message #619835 is a reply to message #474424] Thu, 29 May 2008 09:40 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

thanks for reply. I've reload the Profile by "Load Ressource" functionality
like Felix said.
One questions concering pathmaps:
I load the resource by adding
pathmap://UML_LIBRARY/UMLPrimitiveTypes.library.uml
IMHO, that points to a special plugin (org.eclipse.uml2.resources). But, if
i want to load an own type library, e.g. C# Types or something else,
how to locate this? Or even better: to what directory does pathmap refer? To
the current workspace?

Thanks a lot. Bit by bit my startproblems with this wonderful but
complicated emf/ecore are melting :)
Timothy

"Tatiana Fesenko" <tatiana.fesenko@borland.com> schrieb im Newsbeitrag
news:6785c5264cb38ca8f03a6e7b9bf@news.eclipse.org...
> Hi Timothy,
>
> UMLPrimitiveTypes library should be loaded by default. Boolean, String,
> UnlimitedNatural and Integer are be imported automatically in every
> newly-created diagram.They are shown in the left-top of the diagram in the
> secondary diagram node. Compartment for element imports is collapsed by
> default now(it was expanded before). But if one expand it, these four
> elements should be displayed. Timothy, if compartment is expanded, is
> there anything in it? If not, is there anything in error log? Could you
> please also tell me what UML2Tools build do you use?
> Thank you,
> Tatiana.
>
>> Hello all,
>>
>> i have a problem cooncerning the usage of uml primitive types in my
>> class model. I've created it with the uml2 class-diagram edior. I
>> modeled a clas with only one attribute, which i want to type as
>> UMLPrimitive String. But i had no access to the UMLPrimitiveTypes. I
>> remember, that i had used these types in a class model a long time
>> ago, but know, there are not available.
>>
>> I think this depends on the missing Import of the UMLMetamodel profile
>> or something similiar, but i'm not quite sure whether a) this is
>> correct and b) if oit is, how to solve the problem.
>>
>> Thanks for any hint.
>> Timothy
>
>
Re: Use of UML Primitive Types [message #619971 is a reply to message #474426] Thu, 05 June 2008 15:16 Go to previous message
Raphael is currently offline RaphaelFriend
Messages: 47
Registered: July 2009
Member
Hello Everybody!

IŽm having almost the same doubt...

I have my own PrimitiveTypes and I want to use just them when I compile my
Plug-in.

I have an file called uml.ecore. This uml.ecore has a class called
TypedElemet with a property called type. I want to fill this property type
with only my PrimitiveTypes.

What should I do?!?

Thanks,
Raphael
Previous Topic:[Announce] MDT UML2TOOLS 0.8.0RC3 is available
Next Topic:Abstract use cases not italicized?
Goto Forum:
  


Current Time: Mon Jul 16 18:42:55 GMT 2018

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

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

Back to the top