|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.gef.dnd.AbstractTransferDropTargetListener uk.ac.kcl.cch.jb.pliny.dnd.PlinyTextTransferDropTargetListener
handles the target end of inter-Pliny DnD, when the source
is text from outside of Pliny, and the target is to a
reference/annotation area. The code will translate the
DnD requests it handles into a request for a new Pliny
NoteLucened
to contain the text, and a
LinkableObject
to display it
in the target.
An attempt is made to see of the provided text has a suitable first line title, which, if it does, is used as a name for the created Note.
This class also implements org.eclipse.gef.requests.CreationFactory
which allows it to act as its own factory for creating the new NoteLucened
object.
Constructor Summary | |
PlinyTextTransferDropTargetListener(org.eclipse.gef.EditPartViewer viewer)
|
Method Summary | |
protected org.eclipse.gef.Request |
createTargetRequest()
|
Object |
getNewObject()
|
Object |
getObjectType()
|
protected void |
handleDragOver()
|
protected void |
handleDrop()
|
protected void |
updateTargetRequest()
|
Methods inherited from class org.eclipse.gef.dnd.AbstractTransferDropTargetListener |
dragEnter, dragLeave, dragOperationChanged, dragOver, drop, dropAccept, eraseTargetFeedback, getCommand, getCurrentEvent, getDropLocation, getExclusionSet, getTargetEditPart, getTargetRequest, getTransfer, getViewer, handleDragOperationChanged, handleEnteredEditPart, handleExitingEditPart, handleHover, handleHoverStop, isEnabled, isEnablementDeterminedByCommand, setAutoexposeHelper, setCurrentEvent, setEnablementDeterminedByCommand, setTargetEditPart, setTransfer, setViewer, showTargetFeedback, unload, updateAutoexposeHelper, updateTargetEditPart |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlinyTextTransferDropTargetListener(org.eclipse.gef.EditPartViewer viewer)
Method Detail |
protected void handleDragOver()
protected org.eclipse.gef.Request createTargetRequest()
protected void updateTargetRequest()
protected void handleDrop()
public Object getNewObject()
getNewObject
in interface org.eclipse.gef.requests.CreationFactory
public Object getObjectType()
getObjectType
in interface org.eclipse.gef.requests.CreationFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |