org.eclipse.rse.ui.view
Class SystemViewDataDropAdapter
java.lang.Object
org.eclipse.swt.dnd.DropTargetAdapter
org.eclipse.jface.viewers.ViewerDropAdapter
org.eclipse.rse.ui.view.SystemViewDataDropAdapter
- All Implemented Interfaces:
- DropTargetListener, EventListener, SWTEventListener
- public class SystemViewDataDropAdapter
- extends ViewerDropAdapter
Drop adapter for dropping objects in the Systems views.
| Methods inherited from class org.eclipse.jface.viewers.ViewerDropAdapter |
determineLocation, determineTarget, dragEnter, dragOperationChanged, drop, dropAccept, getBounds, getCurrentLocation, getCurrentOperation, getCurrentTarget, getFeedbackEnabled, getSelectedObject, getViewer, handleException, setFeedbackEnabled, setScrollExpandEnabled, setSelectionFeedbackEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shell
protected Shell shell
hoverStart
protected long hoverStart
hoverThreshold
protected static final long hoverThreshold
- See Also:
- Constant Field Values
CONNECTION_DELIMITER
public static final char CONNECTION_DELIMITER
- See Also:
- Constant Field Values
RESOURCE_SEPARATOR
public static final String RESOURCE_SEPARATOR
- See Also:
- Constant Field Values
_sourceType
protected int _sourceType
SystemViewDataDropAdapter
public SystemViewDataDropAdapter(StructuredViewer viewer)
- Constructor for the drop adapter
validateDrop
public boolean validateDrop(Object target,
int operation,
TransferData transferType)
- Method for determining whether the drop target is a valid target.
We could do extra validation on the source (drag) object(s), although
that could get expensive. The SWT drag and drop framework calls this
method.
performDrop
public boolean performDrop(Object data)
- Called by SWT after the drop have been validated to perform the
drop transfer.
getRunnableContext
protected IRunnableContext getRunnableContext(Shell shell)
dragOver
public void dragOver(DropTargetEvent event)
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.