Class DndTransfer


  • public class DndTransfer
    extends org.eclipse.swt.dnd.ByteArrayTransfer
    Transfer for drag and drop Transfered data must be pair of Integer and String
    • Constructor Detail

      • DndTransfer

        public DndTransfer()
    • Method Detail

      • getInstance

        public static DndTransfer getInstance()
        Returns the singleton instance.
        Returns:
        the singleton instance, never null
      • nativeToJava

        public Object nativeToJava​(org.eclipse.swt.dnd.TransferData transferData)
        Overrides:
        nativeToJava in class org.eclipse.swt.dnd.ByteArrayTransfer
      • javaToNative

        protected void javaToNative​(Object object,
                                    org.eclipse.swt.dnd.TransferData transferData)
        Overrides:
        javaToNative in class org.eclipse.swt.dnd.ByteArrayTransfer
        Parameters:
        object - - . Pair of Integer and String
        transferData - -
      • getTypeIds

        protected int[] getTypeIds()
        Specified by:
        getTypeIds in class org.eclipse.swt.dnd.Transfer
      • getTypeNames

        protected String[] getTypeNames()
        Specified by:
        getTypeNames in class org.eclipse.swt.dnd.Transfer