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
ConstructorsConstructorDescriptionCommonDragAdapter(INavigatorContentService aContentService, ISelectionProvider aProvider) Create a DragAdapter that drives the configuration of the drag data. -
Method Summary
Modifier and TypeMethodDescriptionvoiddragFinished(DragSourceEvent event) This implementation ofdragFinisheddoes nothing.voiddragSetData(DragSourceEvent event) This implementation ofdragSetDatadoes nothing.voiddragStart(DragSourceEvent event) This implementation ofdragStartpermits 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:DragSourceAdapterThis implementation ofdragStartpermits the drag operation to start. For additional information seeDragSourceListener.dragStart.- Specified by:
dragStartin interfaceDragSourceListener- Overrides:
dragStartin classDragSourceAdapter- Parameters:
event- the information associated with the drag start event- See Also:
-
dragSetData
Description copied from class:DragSourceAdapterThis implementation ofdragSetDatadoes nothing. For additional information seeDragSourceListener.dragSetData.- Specified by:
dragSetDatain interfaceDragSourceListener- Overrides:
dragSetDatain classDragSourceAdapter- Parameters:
event- the information associated with the drag set data event- See Also:
-
dragFinished
Description copied from class:DragSourceAdapterThis implementation ofdragFinisheddoes nothing. For additional information seeDragSourceListener.dragFinished.- Specified by:
dragFinishedin interfaceDragSourceListener- Overrides:
dragFinishedin classDragSourceAdapter- Parameters:
event- the information associated with the drag finished event- See Also:
-