/**
* Creates a new model.
*/
private void newModel() {
if (canCreateNewModel()) {
umlModel = new UmlModelImpl();
StructureDiagram diagram = new StructureDiagram(umlModel);
umlModel.addDiagram(diagram);
diagram.setLabelText("Class diagram 1");
tabbedPane.removeAll();
createEditor(diagram);