Class PluginDropAdapter

    • Field Detail

      • ATT_CLASS

        public static final String ATT_CLASS
        The extension point attribute that defines the drop action class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PluginDropAdapter

        public PluginDropAdapter​(StructuredViewer viewer)
        Creates a plug-in drop adapter for the given viewer.
        viewer - the viewer
    • Method Detail

      • getCurrentTransfer

        protected TransferData getCurrentTransfer()
        Returns the current transfer.
      • validateDrop

        public boolean validateDrop​(Object target,
                                    int operation,
                                    TransferData transferType)
        The PluginDropAdapter implementation of this ViewerDropAdapter method is used to notify the action that some aspect of the drop operation has changed. Subclasses may override.
        Specified by:
        validateDrop in class ViewerDropAdapter
        target - the object that the mouse is currently hovering over, or null if the mouse is hovering over empty space
        operation - the current drag operation (copy, move, etc.)
        transferType - the current transfer type
        true if the drop is valid, and false otherwise