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

Bug 329565

Summary: [Usability] Drag and Drop from Model Explorer to all Eclipse view out of Papyrus ones
Product: [Modeling] Papyrus Reporter: Philippe Mising name <philippe.cuenot>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 Keywords: plan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Philippe Mising name CLA 2010-11-05 12:56:53 EDT
Build Identifier: 0.7.0v201007251735

Allow the capability to drag and drop element from Model Explorer to all Eclipse view out of Papyrus. Create an extension point to specificy destination as GMF generation does not allow that by default.

Reproducible: Always
Comment 1 Sébastien Gérard CLA 2010-11-23 11:26:33 EST
Philippe, could you clarify what do you mean by "out of Papyrus"? If you mean in a diagram that is not a Papyrus diagram, I think that it is up to the target diagram editor to implement a specific drop edit policy. The papyrus model explorer already implements a drag policy.
Comment 2 Philippe Mising name CLA 2010-11-23 12:48:20 EST
I would like to be able from selection (and multi selection) element of Papyrus explorer, to be able drag element selected to drop them in a dedicated view not managed by Papyrus.
For example, in Papyrus explorer I select a list of elements, then I drag them into a dedidacted view for specific analysis or concern (variability, dependability) supported by a specific plug-in that drop them and operates with this elements (via reference for examples).
Comment 3 Sébastien Gérard CLA 2010-12-07 09:09:40 EST
There is a priori no problem to do it. The model explorer of Papyrus already implement the drag facility. It is then up to the target view or editor to implement a drop policy using the SWT drag and drop mechanism as explained in this article: DnD SWT http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html
The code of Papyrus related DnD for the model explorer is available here: http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus/branches/0.7.X/plugins/core/org.eclipse.papyrus.modelexplorer/src/org/eclipse/papyrus/modelexplorer/dnd
Comment 4 Sébastien Gérard CLA 2010-12-07 09:11:01 EST
There is a priori nothing to do on the Papyrus side.