Package org.eclipse.gef.dnd
Class TemplateTransfer
java.lang.Object
org.eclipse.swt.dnd.Transfer
org.eclipse.swt.dnd.ByteArrayTransfer
org.eclipse.gef.dnd.SimpleObjectTransfer
org.eclipse.gef.dnd.TemplateTransfer
Transfer object used to transfer the template of a palette tool. It is used
 for drag-and-drop from the palette as well as copy/paste from the palette.
- Since:
- 2.1
- 
Method SummaryModifier and TypeMethodDescriptionstatic TemplateTransferReturns the singleton instanceReturns the template object.protected int[]protected String[]voidsetTemplate(Object template) Sets the template Object.Methods inherited from class org.eclipse.gef.dnd.SimpleObjectTransfergetObject, javaToNative, nativeToJava, setObjectMethods inherited from class org.eclipse.swt.dnd.ByteArrayTransfergetSupportedTypes, isSupportedTypeMethods inherited from class org.eclipse.swt.dnd.TransferregisterType, validate
- 
Method Details- 
getInstanceReturns the singleton instance- Returns:
- the singleton
 
- 
getTemplateReturns the template object.- Returns:
- the template
 
- 
getTypeIdsprotected int[] getTypeIds()- Specified by:
- getTypeIdsin class- Transfer
- See Also:
 
- 
getTypeNames- Specified by:
- getTypeNamesin class- Transfer
- See Also:
 
- 
setTemplateSets the template Object.- Parameters:
- template- the template
 
 
-