* Opens a new structure editor and displays it in the editor area.
* @param umlModel the UmlModel the diagram belongs to
* @return the editor panel
*/
public EditorPanel openNewStructureEditor(UmlModel umlModel) {
GeneralDiagram diagram = new StructureDiagram(umlModel);
diagram.setLabelText(ApplicationResources.getInstance().getString(
"stdcaption.structurediagram") + " " + (structureCounter++));
umlModel.addDiagram(diagram);
return createEditorPanel(new StructureDiagramEditor(
shell.getShellComponent(), diagram),
new StaticStructureEditorToolbarManager());