JToolBar toolbar = staticToolbarManager.getToolbar();
staticToolbarManager.addCommandListener(editorDispatcher);
editorPanel.add(spane, BorderLayout.CENTER);
editorPanel.add(toolbar, BorderLayout.NORTH);
final Component comp = tabbedPane.add(diagram.getLabelText(), editorPanel);
diagram.addNameLabelChangeListener(new LabelChangeListener() {
/** {@inheritDoc} */
public void labelTextChanged(Label label) {
tabbedPane.setTitleAt(tabbedPane.indexOfComponent(comp),
label.getText());
}