|
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
public final class 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,
PluginTransferpublic void dragStart(DragSourceEvent event)
DragSourceAdapterdragStart permits the drag operation to start.
For additional information see DragSourceListener.dragStart.
dragStart in interface DragSourceListenerdragStart in class DragSourceAdapterevent - the information associated with the drag start eventDragSourceEventpublic void dragSetData(DragSourceEvent event)
DragSourceAdapterdragSetData does nothing.
For additional information see DragSourceListener.dragSetData.
dragSetData in interface DragSourceListenerdragSetData in class DragSourceAdapterevent - the information associated with the drag set data eventDragSourceEventpublic void dragFinished(DragSourceEvent event)
DragSourceAdapterdragFinished does nothing.
For additional information see DragSourceListener.dragFinished.
dragFinished in interface DragSourceListenerdragFinished in class DragSourceAdapterevent - the information associated with the drag finished eventDragSourceEvent
|
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.