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

Bug 355510

Summary: [All Diagrams] DnD of a class or property on lifeline for "represents"
Product: [Modeling] Papyrus Reporter: Raphael Faudou <raphael.faudou>
Component: DiagramAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: klaas.gadeyne, raphael.faudou
Version: 1.0.0   
Target Milestone: M4   
Hardware: All   
OS: All   
Whiteboard:

Description Raphael Faudou CLA 2011-08-23 10:14:51 EDT
In most commercial tools, the "represents" property of a lifeline can be filled by dragging and dropping a model element coming from the model explorer view.

In case the user drops a property, it should be assigned to the "represents" property.
In case the user drops a classifier, it would be nice that the tool creates a anonymous ("") property of selected type and assigns this property to the "represents".
Comment 1 Camille Letavernier CLA 2013-11-15 05:20:39 EST
This should be available on all diagrams, as this is purely semantic. Especially, this should also work in a Timing Diagram.
Comment 2 Camille Letavernier CLA 2013-11-15 05:27:16 EST
95932905599124d94e54f5ebb01c8794b7e2eed8, pushed to master:

Added a new Drop Strategy, which handles the two cases:

- Drop a property on the lifeline
- Drop a classifier on the lifeline: Creates an anonymous property in the Interaction.

In both cases, the property is associated to Lifeline#represents.

This works for any diagram on which a Lifeline can be drawn (Class diagram, Timing, Sequence, ...)