org.eclipse.gef.dnd
Class AbstractTransferDragSourceListener
java.lang.Object
org.eclipse.gef.dnd.AbstractTransferDragSourceListener
-
All Implemented Interfaces:
-
TransferDragSourceListener
-
Direct Known Subclasses:
-
TemplateTransferDragSourceListener
- public abstract class AbstractTransferDragSourceListener
- extends java.lang.Object
- implements
TransferDragSourceListener
An abstract implementation of TransferDragSourceListener
associated with an
EditPartViewer
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
AbstractTransferDragSourceListener
public AbstractTransferDragSourceListener(
EditPartViewer viewer)
- Constructs an AbstractTransferDragSourceListener for the given EditPartViewer.
-
Parameters:
-
viewer
- the EditPartViewer
AbstractTransferDragSourceListener
public AbstractTransferDragSourceListener(
EditPartViewer viewer,
Transfer xfer)
- Constructs an AbstractTransferDragSourceListener with the specified EditPartViewer and
Transfer.
-
Parameters:
-
viewer
- the EditPartViewer -
xfer
- the Transfer
dragFinished
public void dragFinished(DragSourceEvent event)
-
-
-
See Also:
-
org.eclipse.swt.dnd.DragSourceListener#dragFinished(DragSourceEvent)
dragStart
public void dragStart(DragSourceEvent event)
-
-
-
See Also:
-
org.eclipse.swt.dnd.DragSourceListener#dragStart(DragSourceEvent)
getTransfer
public Transfer getTransfer()
-
-
-
See Also:
-
TransferDragSourceListener#getTransfer()
getViewer
protected
EditPartViewer getViewer()
- Returns the
EditPartViewer
.
-
-
-
Returns:
- the EditPartViewer
setTransfer
protected void setTransfer(Transfer xfer)
- Sets the
Transfer
for this listener.
-
-
-
Parameters:
-
xfer
- the Transfer
setViewer
protected void setViewer(
EditPartViewer viewer)
- Sets the EditPartViewer for this listener.
-
-
-
Parameters:
-
viewer
- the EditPartViewer
Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.