Class ModelExplorerDropAdapter

  • All Implemented Interfaces:
    java.util.EventListener, org.eclipse.swt.dnd.DropTargetListener, org.eclipse.swt.internal.SWTEventListener

    public class ModelExplorerDropAdapter
    extends ECPDropAdapter
    Author:
    Eugen Neufeld
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter

        org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter.DragAndDropCommandInformation
    • Field Summary

      • Fields inherited from class org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter

        command, commandTarget, domain, dragAndDropCommandInformation, IS_MOTIF, originalOperation, source, viewer
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelExplorerDropAdapter​(org.eclipse.jface.viewers.Viewer viewer)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dragEnter​(org.eclipse.swt.dnd.DropTargetEvent event)
      This is called when the mouse first enters or starts dragging in the viewer.
      void dragOver​(org.eclipse.swt.dnd.DropTargetEvent event)
      This is called repeatedly, as the mouse moves over the viewer.
      void drop​(org.eclipse.swt.dnd.DropTargetEvent event)
      This is called to indicate that the drop action should be invoked.
      void dropAccept​(org.eclipse.swt.dnd.DropTargetEvent event)
      This is called when the mouse is released over the viewer to initiate a drop, between dragLeave and drop.
      • Methods inherited from class org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter

        dragLeave, dragOperationChanged, extractDragSource, extractDropTarget, getAutoFeedback, getDragSource, getLocation, helper
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModelExplorerDropAdapter

        public ModelExplorerDropAdapter​(org.eclipse.jface.viewers.Viewer viewer)
        Default constructor.
        Parameters:
        viewer - the viewer, the drop adapter is responsible for
    • Method Detail

      • dragEnter

        public void dragEnter​(org.eclipse.swt.dnd.DropTargetEvent event)
        Description copied from class: org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
        This is called when the mouse first enters or starts dragging in the viewer.
        Specified by:
        dragEnter in interface org.eclipse.swt.dnd.DropTargetListener
        Overrides:
        dragEnter in class org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
      • dragOver

        public void dragOver​(org.eclipse.swt.dnd.DropTargetEvent event)
        Description copied from class: org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
        This is called repeatedly, as the mouse moves over the viewer.
        Specified by:
        dragOver in interface org.eclipse.swt.dnd.DropTargetListener
        Overrides:
        dragOver in class org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
      • drop

        public void drop​(org.eclipse.swt.dnd.DropTargetEvent event)
        Description copied from class: org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
        This is called to indicate that the drop action should be invoked.
        Specified by:
        drop in interface org.eclipse.swt.dnd.DropTargetListener
        Overrides:
        drop in class org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
      • dropAccept

        public void dropAccept​(org.eclipse.swt.dnd.DropTargetEvent event)
        Description copied from class: org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
        This is called when the mouse is released over the viewer to initiate a drop, between dragLeave and drop.
        Specified by:
        dropAccept in interface org.eclipse.swt.dnd.DropTargetListener
        Overrides:
        dropAccept in class org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter