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

public class TransferDropAdapter extends org.eclipse.net4j.util.ui.dnd.DNDDropAdapter<Object>
A drop adapter that can support a viewer to create and perform transfers of the dragged elements to target elements.
Author:
Eike Stepper
  • Constructor Details

  • Method Details

    • getContainer

      protected org.eclipse.net4j.util.container.IManagedContainer getContainer()
    • getUIProviders

      protected TransferUIProvider[] getUIProviders()
    • validateTarget

      protected boolean validateTarget(Object target, int operation)
      Specified by:
      validateTarget in class org.eclipse.net4j.util.ui.dnd.DNDDropAdapter<Object>
    • performDrop

      protected boolean performDrop(Object data, Object target)
      Specified by:
      performDrop in class org.eclipse.net4j.util.ui.dnd.DNDDropAdapter<Object>
    • getSourceElements

      protected List<CDOTransferElement> getSourceElements(Object data)
    • getTargetElement

      protected CDOTransferElement getTargetElement(Object target)
    • support

      public static TransferDropAdapter support(StructuredViewer viewer)