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
    Description
    static final String
    Common copyright notice
    static final String
    CMVC descriptors - expanded during extraction
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    dropAction(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 Details

  • Method Details

    • 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(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