package org.simantics.district.network.ui; import org.eclipse.ui.IWorkbenchPartReference; import org.eclipse.ui.PartInitException; import org.simantics.modeling.ui.diagramEditor.DiagramEditor; import org.simantics.modeling.ui.diagramEditor.DiagramViewer; public class DistrictDiagramEditor extends DiagramEditor { public static final String ID = "org.simantics.district.network.ui.diagrameditor"; @Override protected DiagramViewer createViewer() throws PartInitException { return new DistrictDiagramViewer(); } @Override public void partHidden(IWorkbenchPartReference partRef) { // we do not want to have disposer for district diagram viewer // to add disposer with default settings uncomment the following line // super.partHidden(partRef); } }