|Drag'n'Drop copies object instead of moving it [message #1749491]
||Wed, 07 December 2016 10:47
| Roman Zimmer
Registered: November 2010
in our e4 RCP application we use EMF Parsley for displaying structured data in a tree viewer. Thanks to the ViewerDragAndDropHelper, we get nice a nice drag'n'drop experience out of the box:
ViewerDragAndDropHelper dragAndDropHelper = injector.getInstance(ViewerDragAndDropHelper.class);
EditingDomain editingDomain = injector.getInstance(EditingDomain.class);
(structuredViewer is a normal JFace TreeViewer)
Given the following data:
When I drag Child 1 "inside" Parent 1, it works just fine and as expected, i.e. I can move it before or after Child 2, holding CTRL I can copy the object.
When I drag Child 1 inside Parent 2, it allows me only to copy the element, i.e. moving (=changing Child 1's parent from Parent 1 to Parent 2) is not possible.
Any idea, what I might doing wrong? Should this be supported out of the box? Might this result from a problem in my ecore-model? Can I workaround the issue or is this a bug?
Any help is appreciated, thanks a lot in advance!
Powered by FUDForum
. Page generated in 0.01753 seconds