Class ViewEditorDropAdapter

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

    public class ViewEditorDropAdapter
    extends ECPDropAdapter
    Drop adapter for the view editor.
    • 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
      ViewEditorDropAdapter()
      Default constructor needed for extension point.
      ViewEditorDropAdapter​(org.eclipse.emf.edit.domain.EditingDomain domain, org.eclipse.jface.viewers.Viewer viewer)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        dragEnter, 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

      • ViewEditorDropAdapter

        public ViewEditorDropAdapter()
        Default constructor needed for extension point.
      • ViewEditorDropAdapter

        public ViewEditorDropAdapter​(org.eclipse.emf.edit.domain.EditingDomain domain,
                                     org.eclipse.jface.viewers.Viewer viewer)
        Constructor.
        Parameters:
        domain - the EditingDomain to use
        viewer - the Viewer this ECPDropAdapter is applied to
    • Method Detail

      • 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
      • 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
      • 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