Package org.eclipse.ui.views.navigator
Class NavigatorDropAdapter
java.lang.Object
org.eclipse.swt.dnd.DropTargetAdapter
org.eclipse.jface.viewers.ViewerDropAdapter
org.eclipse.ui.part.PluginDropAdapter
org.eclipse.ui.views.navigator.NavigatorDropAdapter
- All Implemented Interfaces:
EventListener,DropTargetListener,SWTEventListener,IOverwriteQuery
@Deprecated(forRemoval=true)
public class NavigatorDropAdapter
extends PluginDropAdapter
implements IOverwriteQuery
Deprecated, for removal: This API element is subject to removal in a future version.
as of 3.5, use the Common Navigator Framework classes instead
Implements drop behaviour for drag and drop operations that land on the
resource navigator.
- Since:
- 2.0
-
Field Summary
Fields inherited from class org.eclipse.ui.part.PluginDropAdapter
ATT_CLASSFields inherited from class org.eclipse.jface.viewers.ViewerDropAdapter
LOCATION_AFTER, LOCATION_BEFORE, LOCATION_NONE, LOCATION_ON -
Constructor Summary
ConstructorsConstructorDescriptionNavigatorDropAdapter(StructuredViewer viewer) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new drop adapter. -
Method Summary
Modifier and TypeMethodDescriptionvoiddragEnter(DropTargetEvent event) Deprecated, for removal: This API element is subject to removal in a future version.This implementation ofdragEnterpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType.voidDeprecated, for removal: This API element is subject to removal in a future version.This implementation ofdragOperationChangedpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType.booleanperformDrop(Object data) Deprecated, for removal: This API element is subject to removal in a future version.Perform the drop.queryOverwrite(String pathString) Deprecated, for removal: This API element is subject to removal in a future version.Returns one of the return code constants declared on this interface, indicating whether the entity represented by the passed String should be overwritten.booleanvalidateDrop(Object target, int dragOperation, TransferData transferType) Deprecated, for removal: This API element is subject to removal in a future version.This method is used to notify the action that some aspect of the drop operation has changed.Methods inherited from class org.eclipse.ui.part.PluginDropAdapter
drop, getCurrentTransfer, getPluginAdapterMethods inherited from class org.eclipse.jface.viewers.ViewerDropAdapter
clearState, determineLocation, determineTarget, dragOver, dropAccept, getBounds, getCurrentEvent, getCurrentLocation, getCurrentOperation, getCurrentTarget, getFeedbackEnabled, getSelectedObject, getThreshold, getViewer, handleException, overrideOperation, setExpandEnabled, setFeedbackEnabled, setScrollEnabled, setScrollExpandEnabled, setSelectionFeedbackEnabledMethods inherited from class org.eclipse.swt.dnd.DropTargetAdapter
dragLeave
-
Constructor Details
-
NavigatorDropAdapter
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new drop adapter.- Parameters:
viewer- the navigator's viewer
-
-
Method Details
-
dragEnter
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DropTargetAdapterThis implementation ofdragEnterpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType. For additional information seeDropTargetListener.dragEnter.- Specified by:
dragEnterin interfaceDropTargetListener- Overrides:
dragEnterin classViewerDropAdapter- Parameters:
event- the information associated with the drag enter event- See Also:
-
dragOperationChanged
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DropTargetAdapterThis implementation ofdragOperationChangedpermits the default operation defined inevent.detailto be performed on the current data type defined inevent.currentDataType. For additional information seeDropTargetListener.dragOperationChanged.- Specified by:
dragOperationChangedin interfaceDropTargetListener- Overrides:
dragOperationChangedin classViewerDropAdapter- Parameters:
event- the information associated with the drag operation changed event- See Also:
-
performDrop
Deprecated, for removal: This API element is subject to removal in a future version.Perform the drop.- Overrides:
performDropin classPluginDropAdapter- Parameters:
data- the drop data- Returns:
trueif the drop was successful, andfalseotherwise- See Also:
-
queryOverwrite
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IOverwriteQueryReturns 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:
queryOverwritein interfaceIOverwriteQuery- Parameters:
pathString- the path representing the entity to be overwritten- Returns:
- one of the return code constants declared on this interface
-
validateDrop
Deprecated, for removal: This API element is subject to removal in a future version.This method is used to notify the action that some aspect of the drop operation has changed.- Overrides:
validateDropin classPluginDropAdapter- Parameters:
target- the object that the mouse is currently hovering over, ornullif the mouse is hovering over empty spacedragOperation- the current drag operation (copy, move, etc.)transferType- the current transfer type- Returns:
trueif the drop is valid, andfalseotherwise
-