How to find AbstractDiagram object of IDiagramCustomizer in Modelio 3.7.1

40 Views Asked by At

I implement IDiagramCustomizer interface in my class for customizing diagram palette. But i dont get AbstractDiagram of this customizer calling for. How to access to diagram object via IDiagramCustomizer

I need to access diagram properties for customizing palette tool

1

There are 1 best solutions below

1
On

By implementing IDiagramCustomizer, you have to override several methods including:

  1. keepBasePalette() which will allow you to specfifc if you want to keep the defined palette on the extended diagram type
  2. fillPalette(PaletteRoot paletteRoot) which will allow to define a set of palette groups composed of a set of Tool.