Project

General

Profile

« Previous | Next » 

Revision 0e52abc7

Added by Katja Luther over 6 years ago

fix #7041:set the selected data to LocalSelectionTransfer in dragEnter to provide the selection in drop validation

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TreeNodeDragListenerE4.java
33 33
    @Override
34 34
    public void dragStart(DragSourceEvent event) {
35 35
        event.doit = true;// set to false if needed - default is true
36
        dragSetData(event);
36 37
    }
37 38

  
38 39
    @Override
39 40
    public void dragSetData(DragSourceEvent event) {
40 41
        ISelection selection = viewer.getSelection();
41
        if (LocalSelectionTransfer.getTransfer().isSupportedType(event.dataType)) {
42
            LocalSelectionTransfer.getTransfer().setSelection(selection);
43
        }
42
        LocalSelectionTransfer.getTransfer().setSelection(selection);
44 43
    }
45 44
}

Also available in: Unified diff