Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Access to UML Primitive Types
Access to UML Primitive Types [message #476309] Thu, 05 February 2009 20:04 Go to next message
John Colgrave is currently offline John ColgraveFriend
Messages: 42
Registered: July 2009
Member
I have a project that contains two UML Models, each of which has a
single class diagram. As far as I can recall I created both models and
class diagrams in the same way but when I add a property to a class in
one diagram I can choose the UML primitive type String as the type of
the property but in the other one I can't, I am limited to things
defined in that class diagram.

What controls access to the UML primitive types?

John Colgrave
Re: Access to UML Primitive Types [message #476315 is a reply to message #476309] Wed, 11 February 2009 11:23 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello John,

You can choose primitive type String, because UML Primitive types library
was loaded.
BTW, UML Primitive types library is loaded by default on diagram creation.
I guess, you accidentally unloaded this library; there are many ways to unload
the library - delete all primitive type imports from Secondary Diagram Node,
for example.

So, what you can do now in order to allow String, Interger and other pritimitive
types to be chosen?
Just load it:
1) Call 'Load Resource...' action from the context menu of the diagram,
2) Then type ''platform:/plugin/org.eclipse.uml2.uml.resources/libraries/ UMLPrimitiveTypes.library.uml'
at the opened dialog.

Best wishes,
Tanya.

> I have a project that contains two UML Models, each of which has a
> single class diagram. As far as I can recall I created both models and
> class diagrams in the same way but when I add a property to a class in
> one diagram I can choose the UML primitive type String as the type of
> the property but in the other one I can't, I am limited to things
> defined in that class diagram.
>
> What controls access to the UML primitive types?
>
> John Colgrave
>
Re: Access to UML Primitive Types [message #623597 is a reply to message #476309] Wed, 11 February 2009 11:23 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello John,

You can choose primitive type String, because UML Primitive types library
was loaded.
BTW, UML Primitive types library is loaded by default on diagram creation.
I guess, you accidentally unloaded this library; there are many ways to unload
the library - delete all primitive type imports from Secondary Diagram Node,
for example.

So, what you can do now in order to allow String, Interger and other pritimitive
types to be chosen?
Just load it:
1) Call 'Load Resource...' action from the context menu of the diagram,
2) Then type ''platform:/plugin/org.eclipse.uml2.uml.resources/libraries/ UMLPrimitiveTypes.library.uml'
at the opened dialog.

Best wishes,
Tanya.

> I have a project that contains two UML Models, each of which has a
> single class diagram. As far as I can recall I created both models and
> class diagrams in the same way but when I add a property to a class in
> one diagram I can choose the UML primitive type String as the type of
> the property but in the other one I can't, I am limited to things
> defined in that class diagram.
>
> What controls access to the UML primitive types?
>
> John Colgrave
>
Previous Topic:Disappearing Association
Next Topic:Initial Model Object
Goto Forum:
  


Current Time: Fri Dec 19 08:56:51 GMT 2014

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

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