Previous topic  Top  Next topic  Print this Topic
 

Schema of ExtandableDropHandler

 

<!ELEMENT extension (dropHandler*, transferHandler*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>

 

point - a fully qualified identifier of the target extension point
id - an optional identifier of the extension instance
name - an optional name of the extension instance

 

<!ELEMENT dropHandler>

<!ATTLIST dropHandler

class     CDATA #REQUIRED

dragClass CDATA #REQUIRED

dropClass CDATA #REQUIRED>

 

class - the fully qualified name of the class that implements org.eclipse.swt.dnd.DropTargetListener.
dragClass - The class name of the dragged items
dropClass - The class name of the objects on that the drop can be performed
dropClass - The class name of the objects on that the drop can be performed

 

 <!ELEMENT transferHandler>

<!ATTLIST transferHandler

class         CDATA #REQUIRED

transferClass CDATA #REQUIRED

class - the fully qualified name of the class that implements org.eclipse.swt.dnd.DropTargetListener.
transferClass - The class name of the transfer type this DropTarget listener is associated with.

 

For both types of drag&drop handling, the interface to implement is the org.eclipse.swt.dnd.DropTargetListener interface. The description of this interface can be found in the SWT documentation.