Package org.eclipse.net4j.util.ui.dnd
Class DNDDropAdapter<TYPE>
java.lang.Object
org.eclipse.swt.dnd.DropTargetAdapter
org.eclipse.jface.viewers.ViewerDropAdapter
org.eclipse.net4j.util.ui.dnd.DNDDropAdapter<TYPE>
- All Implemented Interfaces:
EventListener
,DropTargetListener
,org.eclipse.swt.internal.SWTEventListener
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.ViewerDropAdapter
LOCATION_AFTER, LOCATION_BEFORE, LOCATION_NONE, LOCATION_ON
-
Constructor Summary
ModifierConstructorDescriptionprotected
DNDDropAdapter
(StructuredViewer viewer) protected
DNDDropAdapter
(Transfer[] transfers, StructuredViewer viewer) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
determineLocation
(DropTargetEvent event) Transfer[]
boolean
boolean
performDrop
(Object data) protected abstract boolean
performDrop
(TYPE data, Object target) void
setDropBetweenEnabled
(boolean dropBetweenEnabled) protected void
setTransfers
(Transfer[] transfers) boolean
validateDrop
(Object target, int operation, TransferData type) protected abstract boolean
validateTarget
(Object target, int operation) protected boolean
validateTransfer
(TransferData type) 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
-
DNDDropAdapter
- Since:
- 3.0
-
DNDDropAdapter
- Since:
- 3.3
-
-
Method Details
-
getTransfers
- Since:
- 3.0
-
setTransfers
- Since:
- 3.3
-
getViewer
- Overrides:
getViewer
in classViewerDropAdapter
-
isDropBetweenEnabled
public boolean isDropBetweenEnabled() -
setDropBetweenEnabled
public void setDropBetweenEnabled(boolean dropBetweenEnabled) -
determineLocation
- Overrides:
determineLocation
in classViewerDropAdapter
-
performDrop
- Specified by:
performDrop
in classViewerDropAdapter
-
validateDrop
- Specified by:
validateDrop
in classViewerDropAdapter
-
validateTransfer
- Since:
- 3.3
-
validateTarget
-
performDrop
-