com.ibm.mq.explorer.ui.extensions

Interface IExplorerExternalDragDrop



  • public interface IExplorerExternalDragDrop
    The interface that must be implemented if a TreeNode is to accept drag/drop events using an external (non-Explorer defined) data type
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT_NOTICE
      Common copyright notice
      static java.lang.String SCCSID
      CMVC descriptors - expanded during extraction
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      boolean dropAction(java.lang.Object droppedObject, int action)
      Perform the specified drop action using the specified object
      int getAcceptedOperations(org.eclipse.swt.dnd.TransferData dataType)
      Return which operations would be accepted if the specified data transfer type was used
      org.eclipse.swt.dnd.TransferData getPreferredTransferData(org.eclipse.swt.dnd.TransferData[] dataTypes)
      Return which of the specified data transfer types is preferred
    • Field Detail

      • COPYRIGHT_NOTICE

        static final java.lang.String COPYRIGHT_NOTICE
        Common copyright notice
        See Also:
        Constant Field Values
      • SCCSID

        static final java.lang.String SCCSID
        CMVC descriptors - expanded during extraction
        See Also:
        Constant Field Values
    • Method Detail

      • getPreferredTransferData

        org.eclipse.swt.dnd.TransferData getPreferredTransferData(org.eclipse.swt.dnd.TransferData[] dataTypes)
        Return which of the specified data transfer types is preferred
        Parameters:
        dataTypes - the data transfer types to select from
        Returns:
        TransferData the prefered type, or null if non accepted
      • getAcceptedOperations

        int getAcceptedOperations(org.eclipse.swt.dnd.TransferData dataType)
        Return which operations would be accepted if the specified data transfer type was used
        Parameters:
        dataType - the transfer data type
        Returns:
        int the accepted operations (DND.DROP_NONE or combination of DND.DROP_MOVE and/or DND.DROP_COPY)
      • dropAction

        boolean dropAction(java.lang.Object droppedObject,
                           int action)
        Perform the specified drop action using the specified object
        Parameters:
        droppedObject - the object being dropped
        action - the action to take (DND.DROP_MOVE or DND.DROP_COPY)
        Returns:
        boolean true if the action is successful, false otherwise