uk.ac.kcl.cch.jb.pliny.views.utils
Class ResourceExplorerDropTarget
java.lang.Object
org.eclipse.swt.dnd.DropTargetAdapter
uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerDropTarget
- All Implemented Interfaces:
- org.eclipse.swt.dnd.DropTargetListener, EventListener, org.eclipse.swt.internal.SWTEventListener
- public class ResourceExplorerDropTarget
- extends org.eclipse.swt.dnd.DropTargetAdapter
provides code that is invoked whenever an object is DnD dropped
on an item in the Resource Explorer.
It can handle drops of Pliny objects (via the
ClipboardHandler
) and
text (converted to a new Pliny NoteLucened through
ClipboardHandler.processTextObject(java.lang.Object)
.
If the drop was onto a ObjectType item in the Resource Explorer, then
the appropriate
IResourceExtensionProcessor
is invoked to perform an import.
- Author:
- John Bradley
Method Summary |
void |
dragEnter(org.eclipse.swt.dnd.DropTargetEvent event)
|
void |
dragOver(org.eclipse.swt.dnd.DropTargetEvent event)
|
void |
drop(org.eclipse.swt.dnd.DropTargetEvent event)
|
Methods inherited from class org.eclipse.swt.dnd.DropTargetAdapter |
dragLeave, dragOperationChanged, dropAccept |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceExplorerDropTarget
public ResourceExplorerDropTarget(ResourceExplorerView view)
dragOver
public void dragOver(org.eclipse.swt.dnd.DropTargetEvent event)
dragEnter
public void dragEnter(org.eclipse.swt.dnd.DropTargetEvent event)
drop
public void drop(org.eclipse.swt.dnd.DropTargetEvent event)