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

Bug 370819

Summary: [Global] A Flexible Drag & Drop framework
Product: [Modeling] Papyrus Reporter: Camille Letavernier <cletavernier>
Component: DiagramAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: Chokri.Mraidha, rschnekenburger, yann.tanguy
Version: 0.9.0Keywords: plan
Target Milestone: M6Flags: rschnekenburger: juno+
Hardware: All   
OS: All   
Whiteboard: Editors
Bug Depends on:    
Bug Blocks: 388691    

Description Camille Letavernier CLA 2012-02-07 07:39:06 EST
Papyrus should provide a flexible and customizable Drag & Drop framework.

The following cases should be handled:

- Drag & Drop between views
- Drag & Drop between a view and a Diagram
- Drag & Drop between a Diagram and a View
- Drag & Drop inside a Diagram

Currently, the GMF generated code handles most of the Drag & Drop cases in the diagrams. To make it flexible and customizable, a global reflection on the different mechanisms involved will be required.
Comment 1 Camille Letavernier CLA 2012-06-15 05:32:36 EDT
Done in the following commits:

r8199, r8200, r8205, r8223 (Framework)
r8198, r8199, r8211, r8214, r8270 (UML Implementation)
Comment 2 Yann Tanguy CLA 2012-09-04 11:33:04 EDT
This feature induce a regression in Composite Structure Diagram due to an incorrect wrapping of existing CreationEditPolicy (org.eclipse.papyrus.uml.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy) on several edit parts.

This regression is described here: 
388691: [Composite Structure Diagram] Create a port on a class / property
https://bugs.eclipse.org/bugs/show_bug.cgi?id=388691
Comment 3 Camille Letavernier CLA 2013-06-25 10:53:44 EDT
I close this task as it is now complete