|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.dnd.DragSourceAdapter
org.eclipse.ui.navigator.CommonDragAdapter
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.
INavigatorDnDService
,
CommonDragAdapterAssistant
,
CommonDropAdapter
,
CommonDropAdapterAssistant
,
CommonViewer
Constructor Summary | |
---|---|
CommonDragAdapter(INavigatorContentService aContentService,
ISelectionProvider aProvider)
Create a DragAdapter that drives the configuration of the drag data. |
Method Summary | |
---|---|
void |
dragFinished(DragSourceEvent event)
This implementation of dragFinished does nothing.
|
void |
dragSetData(DragSourceEvent event)
This implementation of dragSetData does nothing.
|
void |
dragStart(DragSourceEvent event)
This implementation of dragStart permits the drag operation to start.
|
Transfer[] |
getSupportedDragTransfers()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommonDragAdapter(INavigatorContentService aContentService, ISelectionProvider aProvider)
aContentService
- The content service this Drag Adapter is associated withaProvider
- The provider that can give the current selection from the
appropriate viewer.Method Detail |
public Transfer[] getSupportedDragTransfers()
LocalSelectionTransfer.getTransfer()
,
PluginTransfer.getInstance()
] in addition to any
supported types contributed by the
assistants
.CommonDragAdapterAssistant
,
LocalSelectionTransfer
,
PluginTransfer
public void dragStart(DragSourceEvent event)
DragSourceAdapter
dragStart
permits the drag operation to start.
For additional information see DragSourceListener.dragStart
.
dragStart
in interface DragSourceListener
dragStart
in class DragSourceAdapter
public void dragSetData(DragSourceEvent event)
DragSourceAdapter
dragSetData
does nothing.
For additional information see DragSourceListener.dragSetData
.
dragSetData
in interface DragSourceListener
dragSetData
in class DragSourceAdapter
public void dragFinished(DragSourceEvent event)
DragSourceAdapter
dragFinished
does nothing.
For additional information see DragSourceListener.dragFinished
.
dragFinished
in interface DragSourceListener
dragFinished
in class DragSourceAdapter
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.