Class StackEntry
java.lang.Object
org.eclipse.graphiti.palette.impl.AbstractPaletteEntry
org.eclipse.graphiti.palette.impl.StackEntry
- All Implemented Interfaces:
IPaletteEntry, IStackToolEntry, IToolEntry
The Class StackEntry creates a compartment entry which visualises as a drawer
in the palette containing multiple tools in a drop down list of which one is
active and visible.
-
Constructor Summary
ConstructorsConstructorDescriptionStackEntry(String label, String description, String iconId) Creates a newStackEntry. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCreationToolEntry(ICreationToolEntry creationToolEntry) Adds a creation tool to the stack entry.Returns the creation tools.Gets the description.Methods inherited from class AbstractPaletteEntry
getIconId, getLabelMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPaletteEntry
getIconId, getLabel
-
Constructor Details
-
StackEntry
Creates a newStackEntry.- Parameters:
label- the text to displaydescription- the tooltip texticonId- the id for the icon
-
-
Method Details
-
getDescription
Gets the description.- Specified by:
getDescriptionin interfaceIStackToolEntry- Returns:
- the description
-
getCreationToolEntries
Returns the creation tools.- Specified by:
getCreationToolEntriesin interfaceIStackToolEntry- Returns:
- the creation tool entries
-
addCreationToolEntry
Adds a creation tool to the stack entry.- Parameters:
creationToolEntry- the creation tool entry
-