Class DropEvent


  • public class DropEvent
    extends Object
    The alternative for DropTargetEvent, that allow to create an instance withtout real DNDEvent for the copy/paste action. Because this DNDEvent is not public and an instance of it can not be created manually.

    This event is needed for using DnD infrastructure for copy/paste. TODO It should be removed when the issue G5V8DT-8095 will be done.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      Object data
      a field for application use.
      int detail
      The operation being performed.
      org.eclipse.swt.widgets.Widget item
      If the associated control is a table or tree, this field contains the item located at the cursor coordinates.
      org.eclipse.swt.widgets.Widget widget
      the widget that issued the event.
      int x
      The x-cordinate of the cursor relative to the Display.
      int y
      The y-cordinate of the cursor relative to the Display.
    • Constructor Summary

      Constructors 
      Constructor Description
      DropEvent()
      Creates empty drop event.
      DropEvent​(org.eclipse.swt.dnd.DropTargetEvent e)
      Creates drop event based on DropTargetEvent data.
    • Field Detail

      • x

        public int x
        The x-cordinate of the cursor relative to the Display.
      • y

        public int y
        The y-cordinate of the cursor relative to the Display.
      • item

        public org.eclipse.swt.widgets.Widget item
        If the associated control is a table or tree, this field contains the item located at the cursor coordinates.
      • data

        public Object data
        a field for application use.
      • widget

        public org.eclipse.swt.widgets.Widget widget
        the widget that issued the event.
      • detail

        public int detail
        The operation being performed.
        See Also:
        DND.DROP_NONE, DND.DROP_MOVE, DND.DROP_COPY, DND.DROP_LINK, DND.DROP_DEFAULT
    • Constructor Detail

      • DropEvent

        public DropEvent()
        Creates empty drop event.
      • DropEvent

        public DropEvent​(org.eclipse.swt.dnd.DropTargetEvent e)
        Creates drop event based on DropTargetEvent data.
        Parameters:
        event - the drag target event, cannot be null