Bug 495021

Summary: Invalid feedback and behavior for DnD on bordered nodes.
Product: [Modeling] Sirius Reporter: Maxime Porhel <maxime.porhel>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: laurent.redor
Version: 3.1.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on: 498341    
Bug Blocks:    
Attachments:
Description Flags
Reproduction case none

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.