Document root DnD breaks the GUI
Dragging and dropping the root of the document anywhere inside the content panel causes the semi-transparent drop preview to hang after the drop is completed, as shown below.
The following error is printed to the console of the launching Eclipse instance: "GOT A dragExit when dndGesture is null!". This message stems from the javafx.scene.Scene$DropTargetListener.dragExit
method. Scene
has a DnDGesture
field that is referenced and set multiple times during a DnD. A possible explanation for why it is null in dragExit
could be that dragDropEnd
in Scene$DragSourceListener
is called before dragExit
when it should not, but further inspection is required.
During debugging, an error is found further up the call stack, in the dragLeave
of the EmbeddedSceneDSInterface
created in FXCanvas$HostContainer.createDropTarget
method:
It is unclear what this error means, and whether it is even related to DnD.
Note that this is not a problem in the stand-alone application.