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 -
Method Summary
Modifier and TypeMethodDescriptionbooleandropAction(Object droppedObject, int action) Perform the specified drop action using the specified objectintgetAcceptedOperations(org.eclipse.swt.dnd.TransferData dataType) Return which operations would be accepted if the specified data transfer type was usedorg.eclipse.swt.dnd.TransferDatagetPreferredTransferData(org.eclipse.swt.dnd.TransferData[] dataTypes) Return which of the specified data transfer types is preferred
-
Field Details
-
COPYRIGHT_NOTICE
Common copyright notice- See Also:
-
SCCSID
CMVC descriptors - expanded during extraction- See Also:
-
-
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
Perform the specified drop action using the specified object- Parameters:
droppedObject- the object being droppedaction- the action to take (DND.DROP_MOVE or DND.DROP_COPY)- Returns:
- boolean true if the action is successful, false otherwise
-