Package org.eclipse.gef.palette
Class CombinedTemplateCreationEntry
java.lang.Object
org.eclipse.gef.palette.PaletteEntry
org.eclipse.gef.palette.ToolEntry
org.eclipse.gef.palette.CreationToolEntry
org.eclipse.gef.palette.CombinedTemplateCreationEntry
A combination of a 
PaletteTemplateEntry and ToolEntry. The
 entry will be rendered as a ToolEntry, but it will also be possible to use
 the entry as a DragSource in the same way as a template.- 
Field SummaryFields inherited from class org.eclipse.gef.palette.CreationToolEntryfactoryFields inherited from class org.eclipse.gef.palette.ToolEntryPALETTE_TYPE_TOOLFields inherited from class org.eclipse.gef.palette.PaletteEntrylisteners, PALETTE_TYPE_UNKNOWN, PERMISSION_FULL_MODIFICATION, PERMISSION_HIDE_ONLY, PERMISSION_LIMITED_MODIFICATION, PERMISSION_NO_MODIFICATION, PROPERTY_DEFAULT, PROPERTY_DESCRIPTION, PROPERTY_LABEL, PROPERTY_LARGE_ICON, PROPERTY_PARENT, PROPERTY_SMALL_ICON, PROPERTY_TYPE, PROPERTY_VISIBLE
- 
Constructor SummaryConstructorsConstructorDescriptionCombinedTemplateCreationEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge) Constructs an entry with the given creation factory and template.CombinedTemplateCreationEntry(String label, String shortDesc, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge) Constructs an entry with the given creation factory.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the template object.voidsetTemplate(Object template) Sets the template.Methods inherited from class org.eclipse.gef.palette.ToolEntrycreateTool, getToolProperties, getToolProperty, setToolClass, setToolPropertyMethods inherited from class org.eclipse.gef.palette.PaletteEntryaddPropertyChangeListener, getDescription, getId, getLabel, getLargeIcon, getParent, getSmallIcon, getType, getUserModificationPermission, isVisible, removePropertyChangeListener, setDescription, setId, setLabel, setLargeIcon, setParent, setSmallIcon, setType, setUserModificationPermission, setVisible, toString
- 
Constructor Details- 
CombinedTemplateCreationEntrypublic CombinedTemplateCreationEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge) Constructs an entry with the given creation factory and template. The creation factory is used by the creation tool when the entry is selected. The template is used with theTemplateTransferDragSourceListener.- Parameters:
- label- the label
- shortDesc- the descriptoin
- template- the template object
- factory- the CreationFactory
- iconSmall- the small icon
- iconLarge- the large icon
- Since:
- 3.2
 
- 
CombinedTemplateCreationEntrypublic CombinedTemplateCreationEntry(String label, String shortDesc, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge) Constructs an entry with the given creation factory. The creation factory is also used as the template object.- Parameters:
- label- the label
- shortDesc- the description
- factory- the creation factory and template
- iconSmall- the small icon
- iconLarge- the large icon
- Since:
- 3.2
 
 
- 
- 
Method Details- 
getTemplateReturns the template object.- Returns:
- Object the template
 
- 
setTemplateSets the template.- Parameters:
- template- The template
 
 
-