|
Eclipse Platform Release 3.3 |
|||||||||||
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.views.navigator.NavigatorDragAdapter
Implements drag behaviour when items are dragged out of the resource navigator.
Constructor Summary | |
---|---|
NavigatorDragAdapter(ISelectionProvider provider)
Constructs a new drag adapter. |
Method Summary | |
---|---|
void |
dragFinished(DragSourceEvent event)
This implementation of DragSourceListener.dragFinished(DragSourceEvent)
responds to a drag that has moved resources outside the Navigator by deleting
the corresponding source resource. |
void |
dragSetData(DragSourceEvent event)
This implementation of DragSourceListener.dragSetData(DragSourceEvent)
sets the drag event data based on the current selection in the Navigator. |
void |
dragStart(DragSourceEvent event)
This implementation of DragSourceListener.dragStart(DragSourceEvent)
allows the drag to start if the current Navigator selection contains resources
that can be dragged. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NavigatorDragAdapter(ISelectionProvider provider)
provider
- The selection providerMethod Detail |
public void dragFinished(DragSourceEvent event)
DragSourceListener.dragFinished(DragSourceEvent)
responds to a drag that has moved resources outside the Navigator by deleting
the corresponding source resource.
dragFinished
in interface DragSourceListener
dragFinished
in class DragSourceAdapter
public void dragSetData(DragSourceEvent event)
DragSourceListener.dragSetData(DragSourceEvent)
sets the drag event data based on the current selection in the Navigator.
dragSetData
in interface DragSourceListener
dragSetData
in class DragSourceAdapter
public void dragStart(DragSourceEvent event)
DragSourceListener.dragStart(DragSourceEvent)
allows the drag to start if the current Navigator selection contains resources
that can be dragged.
dragStart
in interface DragSourceListener
dragStart
in class DragSourceAdapter
|
Eclipse Platform Release 3.3 |
|||||||||||
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, 2007. All rights reserved.