PaletteEntry entry = iter.next();
remove(entry);
}
// create new entries
DiagramEditorPageDef diagramPageDef = (DiagramEditorPageDef)diagramPart.definition();
List<DiagramNodeTemplate> nodeTemplates = diagramPart.getVisibleNodeTemplates();
if (nodeTemplates.isEmpty())
{
return;
}
List<DiagramPaletteDrawer> drawers = new ArrayList<DiagramPaletteDrawer>();
Map<String, List<ToolEntry>> entries = new HashMap<String, List<ToolEntry>>();
ElementList<IDiagramPaletteCompartmentDef> compartmentDefs = diagramPageDef.getPaletteCompartments();
if (compartmentDefs.size() == 0)
{
String label = LabelTransformer.transform(DiagramPaletteCompartmentConstants.CONNECTIONS_COMPARTMENT_LABEL,
CapitalizationType.TITLE_STYLE, true);
DiagramPaletteDrawer connectionDrawer = new DiagramPaletteDrawer(label, DiagramPaletteCompartmentConstants.CONNECTIONS_COMPARTMENT_ID);