Newbie: Add attribute to a class in UML class diargram [message #657755] |
Thu, 03 March 2011 16:07  |
Eclipse User |
|
|
|
Good day, colleagues!
I've just install Papyrus and create first UML class diagram. Then I created class from the pallete. But now I don't see a way to create attributes for the class. I have Properties tab at the bottom of the window, it has 4 tabs: UML, Profile, Appearence, Advanded. I don't see any tool for attribute creation at any of these tabs.
Can you help me? How can I create class attributes in Papyrus?
Eclipse - Helios SR2, Papytus - 0.7.2
|
|
|
|
|
|
Re: Newbie: Add attribute to a class in UML class diargram [message #1333652 is a reply to message #1326847] |
Mon, 05 May 2014 02:53  |
Eclipse User |
|
|
|
Hi Leo,
Attributes and Properties in UML are actually exactly the same thing. The semantic element is a "Property", which can have many roles. When a Property is owned by a Structured Classifier, it plays the role of an Attribute.
So... "Owned attributes" actually displays the Properties of the Class.
Thus, you have three options for creating attributes/properties for a Class:
- Most natural one: In a Class diagram, select "Property" from the Palette, and create it on your Class (Drag & Drop, or Click & Click)
- From the properties view: Select a Class, go to the UML tab, then click on the green "+" near "Owned attribute", and select "Property"
- From the model explorer: Right click on a Class, New Child > Property
Camille
|
|
|
Powered by
FUDForum. Page generated in 0.16837 seconds