Package org.eclipse.emf.cdo.transfer.ui
Class TransferDropAdapter
java.lang.Object
org.eclipse.swt.dnd.DropTargetAdapter
org.eclipse.jface.viewers.ViewerDropAdapter
org.eclipse.net4j.util.ui.dnd.DNDDropAdapter<Object>
org.eclipse.emf.cdo.transfer.ui.TransferDropAdapter
- All Implemented Interfaces:
EventListener
,DropTargetListener
,org.eclipse.swt.internal.SWTEventListener
A
drop adapter
that can support
a viewer
to create and perform
transfers
of the dragged elements to target elements
.- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.ViewerDropAdapter
LOCATION_AFTER, LOCATION_BEFORE, LOCATION_NONE, LOCATION_ON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.net4j.util.container.IManagedContainer
protected List<CDOTransferElement>
getSourceElements
(Object data) protected CDOTransferElement
getTargetElement
(Object target) protected TransferUIProvider[]
protected boolean
performDrop
(Object data, Object target) static TransferDropAdapter
support
(StructuredViewer viewer) protected boolean
validateTarget
(Object target, int operation) Methods inherited from class org.eclipse.net4j.util.ui.dnd.DNDDropAdapter
determineLocation, getTransfers, getViewer, isDropBetweenEnabled, performDrop, setDropBetweenEnabled, setTransfers, validateDrop, validateTransfer
Methods inherited from class org.eclipse.jface.viewers.ViewerDropAdapter
clearState, determineTarget, dragEnter, dragOperationChanged, dragOver, drop, dropAccept, getBounds, getCurrentEvent, getCurrentLocation, getCurrentOperation, getCurrentTarget, getFeedbackEnabled, getSelectedObject, getThreshold, handleException, overrideOperation, setExpandEnabled, setFeedbackEnabled, setScrollEnabled, setScrollExpandEnabled, setSelectionFeedbackEnabled
Methods inherited from class org.eclipse.swt.dnd.DropTargetAdapter
dragLeave
-
Constructor Details
-
TransferDropAdapter
-
-
Method Details
-
getContainer
protected org.eclipse.net4j.util.container.IManagedContainer getContainer() -
getUIProviders
-
validateTarget
- Specified by:
validateTarget
in classorg.eclipse.net4j.util.ui.dnd.DNDDropAdapter<Object>
-
performDrop
- Specified by:
performDrop
in classorg.eclipse.net4j.util.ui.dnd.DNDDropAdapter<Object>
-
getSourceElements
-
getTargetElement
-
support
-