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 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.
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 |
CombinedTemplateCreationEntry(java.lang.String label,
java.lang.String shortDesc,
java.lang.Object template,
CreationFactory factory,
org.eclipse.jface.resource.ImageDescriptor iconSmall,
org.eclipse.jface.resource.ImageDescriptor iconLarge)
Constructs a combined CreationTool and Template Entry with the given parameters. |
Method Summary |
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.PaletteEntry |
addPropertyChangeListener, getDescription, getId, getLabel, getLargeIcon, getParent, getSmallIcon, getType, getUserModificationPermission, isVisible, removePropertyChangeListener, setDescription, setId, setLabel, setLargeIcon, setParent, setSmallIcon, setType, setUserModificationPermission, setVisible, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CombinedTemplateCreationEntry
public CombinedTemplateCreationEntry(java.lang.String label,
java.lang.String shortDesc,
java.lang.Object template,
CreationFactory factory,
org.eclipse.jface.resource.ImageDescriptor iconSmall,
org.eclipse.jface.resource.ImageDescriptor iconLarge)
- Constructs a combined CreationTool and Template Entry with the given parameters.
- Parameters:
label
- the labelshortDesc
- the descriptoinfactory
- the CreationFactorytemplate
- the template objecticonSmall
- the small iconiconLarge
- the large icon
getTemplate
public java.lang.Object getTemplate()
- Returns the template object.
- Returns:
- Object the template
setTemplate
public void setTemplate(java.lang.Object template)
- Sets the template.
- Parameters:
template
- The template