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