Community
Participate
Working Groups
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
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.
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).
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
There is a priori nothing to do on the Papyrus side.