Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355510 - [All Diagrams] DnD of a class or property on lifeline for "represents"
Summary: [All Diagrams] DnD of a class or property on lifeline for "represents"
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: M4   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-23 10:14 EDT by Raphael Faudou CLA
Modified: 2013-11-19 15:52 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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, ...)