|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.eclipse.swt.dnd.Transfer
|
+--org.eclipse.swt.dnd.ByteArrayTransfer
|
+--org.eclipse.ui.views.navigator.LocalSelectionTransfer
A LocalSelectionTransfer may be used for drag and drop operations within the same instance of Eclipse. The selection is made available directly for use in the DropTargetListener. dropAccept method. The DropTargetEvent passed to dropAccept does not contain the drop data. The selection may be used for validation purposes so that the drop can be aborted if appropriate. This class is not intended to be subclassed.
| Method Summary | |
static LocalSelectionTransfer |
getInstance()
Returns the singleton. |
ISelection |
getSelection()
Returns the local transfer data. |
protected int[] |
getTypeIds()
Returns the type id used to identify this transfer. |
protected String[] |
getTypeNames()
Returns the type name used to identify this transfer. |
void |
javaToNative(Object object,
TransferData transferData)
Overrides org.eclipse.swt.dnd.ByteArrayTransfer#javaToNative(Object, TransferData). |
Object |
nativeToJava(TransferData transferData)
Overrides org.eclipse.swt.dnd.ByteArrayTransfer#nativeToJava(TransferData). |
void |
setSelection(ISelection s)
Sets the transfer data for local use. |
| Methods inherited from class org.eclipse.swt.dnd.ByteArrayTransfer |
getSupportedTypes, isSupportedType |
| Methods inherited from class org.eclipse.swt.dnd.Transfer |
registerType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static LocalSelectionTransfer getInstance()
public ISelection getSelection()
protected int[] getTypeIds()
getTypeIds in class Transferprotected String[] getTypeNames()
getTypeNames in class Transfer
public void javaToNative(Object object,
TransferData transferData)
javaToNative in class ByteArrayTransferobject - a java byte[] containing the data to be convertedtransferData - an empty TransferData object; this
object will be filled in on return with the platform specific format of the dataByteArrayTransfer.javaToNative(java.lang.Object, org.eclipse.swt.dnd.TransferData)public Object nativeToJava(TransferData transferData)
nativeToJava in class ByteArrayTransfertransferData - the platform specific representation of the data to be
been converted
byte[] containing the converted data if the
conversion was successful; otherwise nullByteArrayTransfer.nativeToJava(TransferData)public void setSelection(ISelection s)
s - the transfer data
|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||