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 Summary
Modifier and TypeMethodDescriptionstatic TemplateTransfer
Returns the singleton instanceReturns the template object.protected int[]
protected String[]
void
setTemplate
(Object template) Sets the template Object.Methods inherited from class org.eclipse.gef.dnd.SimpleObjectTransfer
getObject, javaToNative, nativeToJava, setObject
Methods inherited from class org.eclipse.swt.dnd.ByteArrayTransfer
getSupportedTypes, isSupportedType
Methods inherited from class org.eclipse.swt.dnd.Transfer
registerType, validate
-
Method Details
-
getInstance
Returns the singleton instance- Returns:
- the singleton
-
getTemplate
Returns the template object.- Returns:
- the template
-
getTypeIds
protected int[] getTypeIds()- Specified by:
getTypeIds
in classTransfer
- See Also:
-
getTypeNames
- Specified by:
getTypeNames
in classTransfer
- See Also:
-
setTemplate
Sets the template Object.- Parameters:
template
- the template
-