|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.util.DelegatingDropAdapter
org.eclipse.gef.dnd.DelegatingDropAdapter
org.eclipse.gmf.runtime.diagram.ui.dnd.parts.DiagramViewerDropAdapter
public class DiagramViewerDropAdapter
This class extends the GEF drop target adapter. It delgates all the drop
events to the
org.eclipse.gmf.runtime.common.ui.internal.dnd.drop.DelegatingDropTargetAdapter
If there are no drop target listeners registered with the common
infrastructure, then the drop events are delegated to the parent adpater
DelegatingDropTargetAdapter
Constructor Summary | |
---|---|
DiagramViewerDropAdapter(IDiagramWorkbenchPart workbenchPart)
Constructor |
Method Summary | |
---|---|
void |
dragEnter(DropTargetEvent event)
|
void |
dragLeave(DropTargetEvent event)
|
void |
dragOperationChanged(DropTargetEvent event)
|
void |
dragOver(DropTargetEvent event)
|
void |
drop(DropTargetEvent event)
|
void |
dropAccept(DropTargetEvent event)
|
Transfer[] |
getTransfers()
|
protected void |
initialize(Control control)
Initializes the delegating drop adapter |
boolean |
isEmpty()
|
protected boolean |
isInitialized()
Returns the isInitialized. |
Methods inherited from class org.eclipse.gef.dnd.DelegatingDropAdapter |
---|
addDropTargetListener, getTransferTypes, removeDropTargetListener |
Methods inherited from class org.eclipse.jface.util.DelegatingDropAdapter |
---|
addDropTargetListener, removeDropTargetListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiagramViewerDropAdapter(IDiagramWorkbenchPart workbenchPart)
workbenchPart
- the diagram workbench partMethod Detail |
---|
public Transfer[] getTransfers()
getTransfers
in class DelegatingDropAdapter
protected final void initialize(Control control)
control
- the viewer's controlpublic void dragEnter(DropTargetEvent event)
dragEnter
in interface DropTargetListener
dragEnter
in class DelegatingDropAdapter
public void dragLeave(DropTargetEvent event)
dragLeave
in interface DropTargetListener
dragLeave
in class DelegatingDropAdapter
public void dragOperationChanged(DropTargetEvent event)
dragOperationChanged
in interface DropTargetListener
dragOperationChanged
in class DelegatingDropAdapter
public void dragOver(DropTargetEvent event)
dragOver
in interface DropTargetListener
dragOver
in class DelegatingDropAdapter
public void drop(DropTargetEvent event)
drop
in interface DropTargetListener
drop
in class DelegatingDropAdapter
public void dropAccept(DropTargetEvent event)
dropAccept
in interface DropTargetListener
dropAccept
in class DelegatingDropAdapter
public boolean isEmpty()
isEmpty
in class DelegatingDropAdapter
protected final boolean isInitialized()
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.