@Override
	public void setDiagram( UmlDiagram diagram ) {
		if( diagram == null ) {
			panel.setGraph( null );
			this.diagram = null;
		} else {
			this.diagram = repository.toDefault( diagram );
			panel.setGraph( this.diagram.getGraph() );
		}
		tools.reapply();
	}