org.eclipse.emf.ecp.view.editor.handler
Class ViewEditorDropAdapter

java.lang.Object
  extended by org.eclipse.swt.dnd.DropTargetAdapter
      extended by org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
          extended by org.eclipse.emf.ecp.ui.common.dnd.ECPDropAdapter
              extended by org.eclipse.emf.ecp.view.editor.handler.ViewEditorDropAdapter
All Implemented Interfaces:
EventListener, org.eclipse.swt.dnd.DropTargetListener, org.eclipse.swt.internal.SWTEventListener

public class ViewEditorDropAdapter
extends ECPDropAdapter


Constructor Summary
ViewEditorDropAdapter()
          Default constructor needed for extension point.
ViewEditorDropAdapter(org.eclipse.emf.edit.domain.EditingDomain domain, org.eclipse.jface.viewers.Viewer viewer)
          Constructor.
 
Method Summary
 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.ecp.ui.common.dnd.ECPDropAdapter
setEditingDomain, setViewer
 
Methods inherited from class org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
dragEnter, dragLeave, dragOperationChanged
 
Methods inherited from class java.lang.Object
equals, 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: 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 EditingDomainViewerDropAdapter

dropAccept

public void dropAccept(org.eclipse.swt.dnd.DropTargetEvent event)
Description copied from class: 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 EditingDomainViewerDropAdapter

drop

public void drop(org.eclipse.swt.dnd.DropTargetEvent event)
Description copied from class: 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 EditingDomainViewerDropAdapter


Copyright © 2014. All Rights Reserved.