RSE
Release 1.0

org.eclipse.rse.ui.view
Class SystemViewDataDropAdapter

java.lang.Object
  extended byorg.eclipse.swt.dnd.DropTargetAdapter
      extended byorg.eclipse.jface.viewers.ViewerDropAdapter
          extended byorg.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.


Field Summary
protected  int _sourceType
           
static char CONNECTION_DELIMITER
           
protected  long hoverStart
           
protected static long hoverThreshold
           
static String RESOURCE_SEPARATOR
           
protected  Shell shell
           
 
Fields inherited from class org.eclipse.jface.viewers.ViewerDropAdapter
LOCATION_AFTER, LOCATION_BEFORE, LOCATION_NONE, LOCATION_ON
 
Constructor Summary
SystemViewDataDropAdapter(StructuredViewer viewer)
          Constructor for the drop adapter
 
Method Summary
 void dragOver(DropTargetEvent event)
           
protected  IRunnableContext getRunnableContext(Shell shell)
           
 boolean performDrop(Object data)
          Called by SWT after the drop have been validated to perform the drop transfer.
 boolean validateDrop(Object target, int operation, TransferData transferType)
          Method for determining whether the drop target is a valid target.
 
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 org.eclipse.swt.dnd.DropTargetAdapter
dragLeave
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SystemViewDataDropAdapter

public SystemViewDataDropAdapter(StructuredViewer viewer)
Constructor for the drop adapter

Method Detail

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)

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.