updateUndoActions();
} else {
DiagramComponent dc = (DiagramComponent) d;
DiagramSelection sel = dc.getDiagramSelection();
sel.addListener(this);
selectionChanged(sel);
setDiagramComponentSpecificsEnabled(true);
setShapeToolEnabled(true);
// update grid combo box