]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@15965 ac1ea38d-2e2b...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 27 May 2010 14:27:30 +0000 (14:27 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 27 May 2010 14:27:30 +0000 (14:27 +0000)
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/SysdynDiagramEditor.java

index 05d41f6ea55d34ef108228186b74e7dd06463fca..f6ea01a3660d46b028e4c651507508adcadcf9ba 100644 (file)
@@ -91,8 +91,6 @@ public class SysdynDiagramEditor extends ResourceEditorPart {
 \r
         @Override\r
         public void elementRemoved(IElement element) {\r
-            mapping.rangeModified(element);\r
-            mapping.rangeModified(diagram);\r
         }\r
     };\r
 \r
@@ -166,6 +164,8 @@ public class SysdynDiagramEditor extends ResourceEditorPart {
 \r
             @Override\r
             public void elementRemoved(IElement element) {\r
+                mapping.rangeModified(element);\r
+                mapping.rangeModified(diagram); \r
             }\r
 \r
         });\r
@@ -182,7 +182,6 @@ public class SysdynDiagramEditor extends ResourceEditorPart {
                 @Override\r
                 public void run(ReadGraph g) throws DatabaseException {\r
                     diagramResource = g.getSingleObject(getInputResource(), ModelingResources.getInstance(g).CompositeToDiagram);\r
-                    System.out.println(diagramResource);\r
                     readDiagram(g);                    \r
                 }\r
 \r