Package org.eclipse.gef.dnd
Class SimpleObjectTransfer
java.lang.Object
org.eclipse.swt.dnd.Transfer
org.eclipse.swt.dnd.ByteArrayTransfer
org.eclipse.gef.dnd.SimpleObjectTransfer
- Direct Known Subclasses:
- TemplateTransfer
Holds on to the object being transferred in a field so that
 DropTargetListeners can know what's being dragged before the drop occurs. The
 object isn't converted to bytes, so this Transfer will only work when
 dragging within the same instance of Eclipse. Subclasses should maintain a
 single instance of their Transfer and provide a static method to obtain that
 instance.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the Object.voidjavaToNative(Object object, TransferData transferData) The data object is not converted to bytes.nativeToJava(TransferData transferData) The data object is not converted to bytes.voidSets the Object.Methods inherited from class org.eclipse.swt.dnd.ByteArrayTransfergetSupportedTypes, isSupportedTypeMethods inherited from class org.eclipse.swt.dnd.TransfergetTypeIds, getTypeNames, registerType, validate
- 
Constructor Details- 
SimpleObjectTransferpublic SimpleObjectTransfer()
 
- 
- 
Method Details- 
getObjectReturns the Object.- Returns:
- The Object
 
- 
javaToNativeThe data object is not converted to bytes. It is held onto in a field. Instead, a checksum is written out to prevent unwanted drags across mulitple running copies of Eclipse.- Overrides:
- javaToNativein class- ByteArrayTransfer
- See Also:
 
- 
nativeToJavaThe data object is not converted to bytes. It is held onto in a field. Instead, a checksum is written out to prevent unwanted drags across mulitple running. copies of Eclipse.- Overrides:
- nativeToJavain class- ByteArrayTransfer
- See Also:
 
- 
setObjectSets the Object.- Parameters:
- obj- The Object
 
 
-