de.tu_berlin.cs.tfs.muvitorkit.gef.palette
Class MuvitorPaletteRoot
java.lang.Object
org.eclipse.gef.palette.PaletteEntry
org.eclipse.gef.palette.PaletteContainer
org.eclipse.gef.palette.PaletteRoot
de.tu_berlin.cs.tfs.muvitorkit.gef.palette.MuvitorPaletteRoot
public class MuvitorPaletteRoot
- extends PaletteRoot
A default palette root that can be used in graphical views. It features a
flexible convenient method to add new tool entries to palette groups.
- Rating

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 |
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 |
defaultPaletteGroup
protected final PaletteGroup defaultPaletteGroup
MuvitorPaletteRoot
public MuvitorPaletteRoot()
addToolEntry
protected ToolEntry addToolEntry(PaletteGroup group,
String label,
String description,
CreationFactory factory,
ImageDescriptor iconSmall,
ImageDescriptor iconLarge,
Class<? extends TargetingTool> creationToolClass)
- A convenience method for simply creating tool entries to a palette group.
With this you may specify a tool class different to the GEF standard
CreationTool.class, e.g. if you want to override its command execution
behavior to let the tool show some dialogs before creating or executing a
command.
- Parameters:
group
- the palette group the tool entry will be added tolabel
- the label of the new tool entrydescription
- the description of the new tool entryfactory
- the creation factory the tool entry will useiconSmall
- a small icon for the tool entryiconLarge
- a large icon for the tool entrycreationToolClass
- the class of the creation tool
- Returns:
- the newly added tool entry for further custom modifications