Class MeasuringpointDropListener
java.lang.Object
org.eclipse.swt.dnd.DropTargetAdapter
org.eclipse.jface.viewers.ViewerDropAdapter
org.palladiosimulator.measurementsui.abstractviewer.listener.MeasuringpointDropListener
- All Implemented Interfaces:
EventListener
,DropTargetListener
,SWTEventListener
DropListener which specifies what happens if a MeasuringPoint is dropped into a container.
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.ViewerDropAdapter
LOCATION_AFTER, LOCATION_BEFORE, LOCATION_NONE, LOCATION_ON
-
Constructor Summary
ConstructorDescriptionMeasuringpointDropListener
(MeasurementsTreeViewer measurementTreeViewer, PropertyChangeListener listener) -
Method Summary
Modifier and TypeMethodDescriptionboolean
performDrop
(Object data) boolean
validateDrop
(Object target, int operation, TransferData transferType) Methods inherited from class org.eclipse.jface.viewers.ViewerDropAdapter
clearState, determineLocation, determineTarget, dragEnter, dragOperationChanged, dragOver, drop, dropAccept, getBounds, getCurrentEvent, getCurrentLocation, getCurrentOperation, getCurrentTarget, getFeedbackEnabled, getSelectedObject, getThreshold, getViewer, handleException, overrideOperation, setExpandEnabled, setFeedbackEnabled, setScrollEnabled, setScrollExpandEnabled, setSelectionFeedbackEnabled
Methods inherited from class org.eclipse.swt.dnd.DropTargetAdapter
dragLeave
-
Constructor Details
-
MeasuringpointDropListener
public MeasuringpointDropListener(MeasurementsTreeViewer measurementTreeViewer, PropertyChangeListener listener) - Parameters:
measurementTreeViewer
- MeasurementTreeViewer where the MeasuringPoint is dropped in.
-
-
Method Details
-
performDrop
- Specified by:
performDrop
in classViewerDropAdapter
-
validateDrop
- Specified by:
validateDrop
in classViewerDropAdapter
-