com.joanju.cg.search
Class ResourceTransferDragAdapter
java.lang.Object
DragSourceAdapter
com.joanju.cg.search.ResourceTransferDragAdapter
public class ResourceTransferDragAdapter
- extends DragSourceAdapter
A drag adapter that transfers the current selection as
IResource. Only those elements in the selection are part
of the transfer which can be converted into an IResource
.
Constructor Summary |
ResourceTransferDragAdapter(ISelectionProvider provider)
Creates a new ResourceTransferDragAdapter for the given selection
provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceTransferDragAdapter
public ResourceTransferDragAdapter(ISelectionProvider provider)
- Creates a new ResourceTransferDragAdapter for the given selection
provider.
- Parameters:
provider
- the selection provider to access the viewer's selection
getTransfer
public Transfer getTransfer()
dragStart
public void dragStart(DragSourceEvent event)
dragSetData
public void dragSetData(DragSourceEvent event)
dragFinished
public void dragFinished(DragSourceEvent event)
Copyright © 2008 Joanju Software. All Rights Reserved.