Package org.eclipse.ui.views.navigator
Class NavigatorDragAdapter
java.lang.Object
org.eclipse.swt.dnd.DragSourceAdapter
org.eclipse.ui.views.navigator.NavigatorDragAdapter
- All Implemented Interfaces:
EventListener,DragSourceListener,SWTEventListener
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 drag behaviour when items are dragged out of the resource
navigator.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionNavigatorDragAdapter(ISelectionProvider provider) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new drag adapter. -
Method Summary
Modifier and TypeMethodDescriptionvoiddragFinished(DragSourceEvent event) Deprecated, for removal: This API element is subject to removal in a future version.This implementation ofDragSourceListener.dragFinished(DragSourceEvent)responds to a drag that has moved resources outside the Navigator by deleting the corresponding source resource.voiddragSetData(DragSourceEvent event) Deprecated, for removal: This API element is subject to removal in a future version.This implementation ofDragSourceListener.dragSetData(DragSourceEvent)sets the drag event data based on the current selection in the Navigator.voiddragStart(DragSourceEvent event) Deprecated, for removal: This API element is subject to removal in a future version.This implementation ofDragSourceListener.dragStart(DragSourceEvent)allows the drag to start if the current Navigator selection contains resources that can be dragged.
-
Constructor Details
-
NavigatorDragAdapter
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new drag adapter.- Parameters:
provider- The selection provider
-
-
Method Details
-
dragFinished
Deprecated, for removal: This API element is subject to removal in a future version.This implementation ofDragSourceListener.dragFinished(DragSourceEvent)responds to a drag that has moved resources outside the Navigator by deleting the corresponding source resource.- Specified by:
dragFinishedin interfaceDragSourceListener- Overrides:
dragFinishedin classDragSourceAdapter- Parameters:
event- the information associated with the drag finished event- See Also:
-
dragSetData
Deprecated, for removal: This API element is subject to removal in a future version.This implementation ofDragSourceListener.dragSetData(DragSourceEvent)sets the drag event data based on the current selection in the Navigator.- Specified by:
dragSetDatain interfaceDragSourceListener- Overrides:
dragSetDatain classDragSourceAdapter- Parameters:
event- the information associated with the drag set data event- See Also:
-
dragStart
Deprecated, for removal: This API element is subject to removal in a future version.This implementation ofDragSourceListener.dragStart(DragSourceEvent)allows the drag to start if the current Navigator selection contains resources that can be dragged.- Specified by:
dragStartin interfaceDragSourceListener- Overrides:
dragStartin classDragSourceAdapter- Parameters:
event- the information associated with the drag start event- See Also:
-