Class NavigatorDropAdapter

    • Constructor Detail

      • NavigatorDropAdapter

        public NavigatorDropAdapter​(StructuredViewer viewer)
        Deprecated.
        Constructs a new drop adapter.
        Parameters:
        viewer - the navigator's viewer
    • Method Detail

      • dragEnter

        public void dragEnter​(DropTargetEvent event)
        Deprecated.
        Description copied from class: DropTargetAdapter
        This implementation of dragEnter permits the default operation defined in event.detailto be performed on the current data type defined in event.currentDataType. For additional information see DropTargetListener.dragEnter.
        Specified by:
        dragEnter in interface DropTargetListener
        Overrides:
        dragEnter in class ViewerDropAdapter
        Parameters:
        event - the information associated with the drag enter event
        See Also:
        DropTargetEvent
      • dragOperationChanged

        public void dragOperationChanged​(DropTargetEvent event)
        Deprecated.
        Description copied from class: DropTargetAdapter
        This implementation of dragOperationChanged permits the default operation defined in event.detailto be performed on the current data type defined in event.currentDataType. For additional information see DropTargetListener.dragOperationChanged.
        Specified by:
        dragOperationChanged in interface DropTargetListener
        Overrides:
        dragOperationChanged in class ViewerDropAdapter
        Parameters:
        event - the information associated with the drag operation changed event
        See Also:
        DropTargetEvent
      • queryOverwrite

        public String queryOverwrite​(String pathString)
        Deprecated.
        Description copied from interface: IOverwriteQuery
        Returns one of the return code constants declared on this interface, indicating whether the entity represented by the passed String should be overwritten.

        This method may be called from a non-UI thread, in which case this method must run the query in a sync exec in the UI thread, if it needs to query the user.

        Specified by:
        queryOverwrite in interface IOverwriteQuery
        Parameters:
        pathString - the path representing the entity to be overwritten
        Returns:
        one of the return code constants declared on this interface
      • validateDrop

        public boolean validateDrop​(Object target,
                                    int dragOperation,
                                    TransferData transferType)
        Deprecated.
        This method is used to notify the action that some aspect of the drop operation has changed.
        Overrides:
        validateDrop in class PluginDropAdapter
        Parameters:
        target - the object that the mouse is currently hovering over, or null if the mouse is hovering over empty space
        dragOperation - the current drag operation (copy, move, etc.)
        transferType - the current transfer type
        Returns:
        true if the drop is valid, and false otherwise