Project

General

Profile

Revision 0e52abc7

ID0e52abc764ad122fef19e8dad756e65f6d8039bb
Parent 199741f4
Child 4e17654b

Added by Katja Luther almost 3 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

Add picture from clipboard (Maximum size: 40 MB)