Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368143

Summary: <<documentation>> comment should incorporate its container (UML::Element) in annotatedElement list
Product: [Modeling] Papyrus Reporter: Marc-Florian Wendland <marc-florian.wendland>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: CLOSED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: cletavernier, max.bureck
Version: 0.8.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Marc-Florian Wendland CLA 2012-01-09 07:08:51 EST
The UML drawing capabilities of Papyrus can be used to create a model which is later imported by EMF'S UML importer as EMF model. The EMF importer allows the definition of comments as documentation for the elements. Therefore, a UML::Comment must have its annotatedElement list set with those elements, which are documented with the body of the annotating element.

Papyrus offers its own documentation mechanism, which is based on a stereotype <<documentation>> and the corresponding tooling (Documentation view). Unfortunately, such an automatically integrated comment does not set the annotatedElement list. 

To strengthen the meta-modeling capabilities of Payprus MDT and the integration with EMF, the <<documentation>> base_Comment element should insert its owning container (the element which is documented) into the annotatedElement list.
Comment 1 Camille Letavernier CLA 2014-04-11 06:27:23 EDT
The <<Documentation>> stereotype has been removed from Papyrus in 0.9.0

The current "Comments" tab can be used to attach comments directly as an "annotating element" of the current element

I close this task