|Re: Comment Elements, Applied comments, and Owned comments [message #1696450 is a reply to message #1696426]
||Tue, 26 May 2015 14:22
| Camille Letavernier
Registered: February 2011
The "ownedComment" is a containment relationship between the owner and the comment. It has little semantics value. The "Applied Comments" is the list of comments annotating the current element (It is the opposite of the Comment#annotatedElement relationship).
In Papyrus, when you add an "Applied Comment", it is also added (Under the hood) to "Owned Comments", but we don't display it in the properties view because it would be mostly redundant.
When you create a Comment in a Class Diagram (on the canvas), it is added to the Diagram's Context "Owned Comments". Then, when you create a Comment Link between this comment and a Class, it is added to the "Applied Comments" of the Class
Powered by FUDForum
. Page generated in 0.01929 seconds