public class DefaultDiagramCustomizer extends Object implements IDiagramCustomizer
Constructor and Description |
---|
DefaultDiagramCustomizer() |
Modifier and Type | Method and Description |
---|---|
void |
fillPalette(org.eclipse.gef.palette.PaletteRoot paletteRoot)
Define the palette content by adding groups and tools in it.
Tools can be custom (i.e. |
String |
getParameter(String key) |
Map<String,String> |
getParameters()
Return the handler parameters as defined in the module.xml file
|
void |
initialize(IModule module,
List<PaletteEntry> paletteTools,
Map<String,String> hParameters,
boolean keepPalette)
Initialize the customizer.
|
boolean |
keepBasePalette()
Indicates whether the 'standard' content of the diagram palette must be kept or flushed when opening this stereotyped
diagram.
|
public void fillPalette(org.eclipse.gef.palette.PaletteRoot paletteRoot)
IDiagramCustomizer
fillPalette
in interface IDiagramCustomizer
public Map<String,String> getParameters()
IDiagramCustomizer
getParameters
in interface IDiagramCustomizer
public void initialize(IModule module, List<PaletteEntry> paletteTools, Map<String,String> hParameters, boolean keepPalette)
IDiagramCustomizer
initialize
in interface IDiagramCustomizer
public boolean keepBasePalette()
IDiagramCustomizer
keepBasePalette
in interface IDiagramCustomizer
true
when the 'standard' content of the diagram palette must be kept.