Class DragAndDropSupport


  • public class DragAndDropSupport
    extends Object
    Provides drag-and-drop capabilities to controls.
    • Constructor Detail

      • DragAndDropSupport

        public DragAndDropSupport()
    • Method Detail

      • attach

        public static void attach​(org.eclipse.swt.widgets.Control control,
                                  DragAndDropSelectionListener listener)
        Adds DnD capabilities to the provided Control object with specified drag and drop listener. The method returns Pair of DragSource and DropTarget objects attached to the control.
        Parameters:
        control - the control to add DnD capabilities for
        listener - the listener of drag-and-drop events, cannot be null