Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.emf.ecp.ui.common.dnd
Class ModelExplorerDropAdapter

    java.lang.Object
      org.eclipse.swt.dnd.DropTargetAdapter
          org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
              org.eclipse.emf.ecp.ui.common.dnd.ECPDropAdapter
                  org.eclipse.emf.ecp.ui.common.dnd.ModelExplorerDropAdapter

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

    public class ModelExplorerDropAdapter

extends ECPDropAdapter

Author:
  Eugen Neufeld

Constructor Summary
`ModelExplorerDropAdapter(org.eclipse.jface.viewers.Viewer viewer)` Default constructor.

Method Summary
`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.ecp.ui.common.dnd.ECPDropAdapter
`setEditingDomain, setViewer`

Methods inherited from class org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter
`dragLeave, dragOperationChanged`

Methods inherited from class java.lang.Object
`equals, 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: `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 `EditingDomainViewerDropAdapter`

### 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`

### 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`

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2015. All Rights Reserved.