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
-
public class CombinedTemplateCreationEntry extends CreationToolEntry
A combination of aPaletteTemplateEntry
andToolEntry
. 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 Summary
-
Fields inherited from class org.eclipse.gef.palette.CreationToolEntry
factory
-
Fields inherited from class org.eclipse.gef.palette.ToolEntry
PALETTE_TYPE_TOOL
-
Fields inherited from class org.eclipse.gef.palette.PaletteEntry
listeners, 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 Summary
Constructors Constructor Description CombinedTemplateCreationEntry(java.lang.String label, java.lang.String shortDesc, java.lang.Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)
Constructs an entry with the given creation factory and template.CombinedTemplateCreationEntry(java.lang.String label, java.lang.String shortDesc, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)
Constructs an entry with the given creation factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getTemplate()
Returns the template object.void
setTemplate(java.lang.Object template)
Sets the template.-
Methods inherited from class org.eclipse.gef.palette.ToolEntry
createTool, getToolProperties, getToolProperty, setToolClass, setToolProperty
-
Methods inherited from class org.eclipse.gef.palette.PaletteEntry
addPropertyChangeListener, getDescription, getId, getLabel, getLargeIcon, getParent, getSmallIcon, getType, getUserModificationPermission, isVisible, removePropertyChangeListener, setDescription, setId, setLabel, setLargeIcon, setParent, setSmallIcon, setType, setUserModificationPermission, setVisible, toString
-
-
-
-
Constructor Detail
-
CombinedTemplateCreationEntry
public CombinedTemplateCreationEntry(java.lang.String label, java.lang.String shortDesc, java.lang.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 labelshortDesc
- the descriptointemplate
- the template objectfactory
- the CreationFactoryiconSmall
- the small iconiconLarge
- the large icon- Since:
- 3.2
-
CombinedTemplateCreationEntry
public CombinedTemplateCreationEntry(java.lang.String label, java.lang.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 labelshortDesc
- the descriptionfactory
- the creation factory and templateiconSmall
- the small iconiconLarge
- the large icon- Since:
- 3.2
-
-