Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322991 - [All Diagrams] Can not drop the link of a comment/Constraint/...
Summary: [All Diagrams] Can not drop the link of a comment/Constraint/...
Status: CLOSED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 0.10.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Vincent Lorenzo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-18 04:31 EDT by saadia dhouib CLA
Modified: 2016-09-13 05:18 EDT (History)
2 users (show)

See Also:
vincent.lorenzo: pmc_approved?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description saadia dhouib CLA 2010-08-18 04:31:49 EDT
Steps to reproduce:
1. Create a diagram element (class, lifeline, or any other node)
2. Create a comment
3. link the comment to the diagram element
4. Hide the comment from the diagram
5. Drop the comment from the model explorer to the diagram.
You will notice that the link from the comment to the diagram element is not dropped.
Comment 1 Vincent Lorenzo CLA 2010-10-27 08:04:59 EDT
The problem is the same with Constraint, maybe with DurationObservation and TimeObservation. 
More generally, the problem exists with all UML elements linked to another element by a link without semantic link.
Comment 2 Vincent Lorenzo CLA 2010-10-29 02:45:38 EDT
In r3052 : 
	add the methods getDropCommentCommand and getDropConstraintCommand in CommonDiagramDragDropEditPolicy.
Comment 3 Vincent Lorenzo CLA 2010-10-29 02:59:13 EDT
in r3053 : Constraint and Comment can now be dropped from the Model Explorer with their links in :
	ProfileDiagram
	CommunicationDiagram
	Composite Structure Diagram
The 	CustomDiagramDragDropEditPolicy is modified is each diagram and used the previous methods  : getDropCommentCommand and getDropConstraintCommand
Comment 4 Camille Letavernier CLA 2013-03-22 13:37:31 EDT
Some diagrams still do not support this feature.

Also, when dropping a comment and its annotated element at the same time, the link is not displayed.
Comment 5 Vincent Lorenzo CLA 2016-09-13 05:18:32 EDT
This bug can now be marked as closed fixed. We will open new bug in case of problems.