Bug 491776 - Drag and drop elements across representations
Summary: Drag and drop elements across representations
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Windows 8
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-04-15 06:45 EDT by Christoph Rieger CLA
Modified: 2016-04-26 05:00 EDT (History)
1 user (show)

See Also:


Attachments
Test Drag N Drop problem (7.39 KB, application/zip)
2016-04-26 04:59 EDT, Julien Dupont CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Rieger CLA 2016-04-15 06:45:13 EDT
The current drag and drop editing does not work intuitively when source and target representation of the element differ.

Example: 
- A container C contains a list of Subnodes SN of Domainclass A. 
- Furthermore, a Node N exists which contains BorderedNodes BN of the same Domainclass A.

When creating a Container drop tool with N as container and SN specified as mapping, this does not result in the desired ability to drag a list item onto a node, although the action is semantically correct (both elements contain other elements of corresponding types).

As pointed out in [1], this works if the drop tool has *both* SN and BN specified as mappings. This is not intuitive (nor documented) and has the additional difference that now also dragging between different N nodes is enabled which might not be generally desired.


[1]: https://www.eclipse.org/forums/index.php/m/1729544/#msg_1729528
Comment 1 Julien Dupont CLA 2016-04-26 04:59:43 EDT
Created attachment 261245 [details]
Test Drag N Drop problem
Comment 2 Julien Dupont CLA 2016-04-26 05:00:11 EDT
Hi, 

Thank you for your feedback.

To reproduce problem, use example joined:
- Open new DiagClassAndPackage
- Try to Drag N Drop E1 to p1. It works OK
- Ctrl + Z to have E1 in diagram and not in p1
- Open TestDragNDropTool.odesign, remove the mapping BorderedDCP_ClassPort in the Container Drop tool (DCP_DropClass).
- Try to Drag N Drop E1 to p1. Nothing KO

We should can to drag n drop E1 to p1, without add the bordered mapping node in the container drop tool.