Bug 495021 - Invalid feedback and behavior for DnD on bordered nodes.
Summary: Invalid feedback and behavior for DnD on bordered nodes.
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on: 498341
Blocks:
  Show dependency tree
 
Reported: 2016-05-31 09:20 EDT by Maxime Porhel CLA
Modified: 2016-07-25 04:51 EDT (History)
1 user (show)

See Also:


Attachments
Reproduction case (5.10 KB, application/zip)
2016-05-31 09:20 EDT, Maxime Porhel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Porhel CLA 2016-05-31 09:20:23 EDT
Created attachment 262131 [details]
Reproduction case

Steps to reproduce: 
 . Open one of the diagram in the attached zip
 . Try to drag and drop
     . an orange border node on a black border node
     . an orange border node on an orange border node
     . a black border node on a black border node
     . a black border node on an orange border node

The tool is configured to allow the dnd of orange border nodes to containers or the gray border nodes. 

> We should not see the move feedback for dnd on orange border as the dnd is not specified on those elements
> We should not see dnd feedback (ghost on the target, grayed feedback on the target) when a gray border node is dnd
> We should see the grayed feedback on the gray border node when an orange node hoovers it and also a ghost border node on it
> Dropping an orange node on a gray border node should result in the creation of an orange border node on the parent of the drop targer

Note that DNode2EditPart and DNode4EditPart does not install the SiriusContainerDropEditPolicy which is the entry point for dnd feedback and drop tool command creation.