Package org.eclipse.ui.navigator
Class CommonDragAdapter
java.lang.Object
org.eclipse.swt.dnd.DragSourceAdapter
org.eclipse.ui.navigator.CommonDragAdapter
- All Implemented Interfaces:
EventListener
,DragSourceListener
,SWTEventListener
Provides an implementation of
DragSourceAdapter
which uses the
extensions provided by the associated INavigatorContentService
.
Clients should not need to create an instance of this class unless they are
creating their own custom viewer. Otherwise, CommonViewer
configures
its drag adapter automatically.
-
Constructor Summary
ConstructorDescriptionCommonDragAdapter
(INavigatorContentService aContentService, ISelectionProvider aProvider) Create a DragAdapter that drives the configuration of the drag data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dragFinished
(DragSourceEvent event) This implementation ofdragFinished
does nothing.void
dragSetData
(DragSourceEvent event) This implementation ofdragSetData
does nothing.void
dragStart
(DragSourceEvent event) This implementation ofdragStart
permits the drag operation to start.Transfer[]
-
Constructor Details
-
Method Details
-
getSupportedDragTransfers
- Returns:
- An array of supported Drag Transfer types. The list contains [
LocalSelectionTransfer.getTransfer()
,PluginTransfer.getInstance()
] in addition to any supported types contributed by theassistants
. - See Also:
-
dragStart
Description copied from class:DragSourceAdapter
This implementation ofdragStart
permits the drag operation to start. For additional information seeDragSourceListener.dragStart
.- Specified by:
dragStart
in interfaceDragSourceListener
- Overrides:
dragStart
in classDragSourceAdapter
- Parameters:
event
- the information associated with the drag start event- See Also:
-
dragSetData
Description copied from class:DragSourceAdapter
This implementation ofdragSetData
does nothing. For additional information seeDragSourceListener.dragSetData
.- Specified by:
dragSetData
in interfaceDragSourceListener
- Overrides:
dragSetData
in classDragSourceAdapter
- Parameters:
event
- the information associated with the drag set data event- See Also:
-
dragFinished
Description copied from class:DragSourceAdapter
This implementation ofdragFinished
does nothing. For additional information seeDragSourceListener.dragFinished
.- Specified by:
dragFinished
in interfaceDragSourceListener
- Overrides:
dragFinished
in classDragSourceAdapter
- Parameters:
event
- the information associated with the drag finished event- See Also:
-