]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Attempts at lowering diagram and especially g2d ElementClass memory consumption by...
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 9 Mar 2012 03:07:40 +0000 (03:07 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 9 Mar 2012 03:07:40 +0000 (03:07 +0000)
There are still plenty of equals/hashCode problems in the ElementClass instances constructed by different ElementFactory implementations.

refs #3275

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@24388 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/connections/DependencyEdgeFactory.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/connections/FlowEdgeFactoryOld.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/connections/RouteFlowEdgeFactory.java

index 998bbc42307b19c786c2a3da2af589b7e400e047..1e8aabb7a008fe1ec3817a4962c137eacfea518a 100644 (file)
@@ -37,7 +37,7 @@ public class DependencyEdgeFactory extends ElementFactoryAdapter {
     @Override\r
     public void getClass(AsyncReadGraph graph, ICanvasContext canvas, IDiagram diagram, Resource elementResource,\r
             AsyncProcedure<ElementClass> procedure) {\r
-        throw new UnsupportedOperationException();\r
+        procedure.execute(graph, CLASS);\r
     }\r
 \r
 }\r
index ae6eee9827293c165f930fc5d7a2d600cd029bf5..71e2c0668b501f68c8f7d6e9ee5c48c00dbc9cf1 100644 (file)
@@ -37,7 +37,7 @@ public class FlowEdgeFactoryOld extends ElementFactoryAdapter {
     @Override\r
     public void getClass(AsyncReadGraph graph, ICanvasContext canvas, IDiagram diagram, Resource elementResource,\r
             AsyncProcedure<ElementClass> procedure) {\r
-        throw new UnsupportedOperationException();\r
+        procedure.execute(graph, CLASS);\r
     }\r
 \r
 }\r
index 8ee7934b94667ddf24423a33d05f92ac7b9c9850..838c2d069ae3cb667192539bebc0ea86e6407154 100644 (file)
@@ -32,7 +32,7 @@ public class RouteFlowEdgeFactory extends ElementFactoryAdapter {
     @Override\r
     public void getClass(AsyncReadGraph graph, ICanvasContext canvas, IDiagram diagram, Resource elementResource,\r
             AsyncProcedure<ElementClass> procedure) {\r
-        throw new UnsupportedOperationException();\r
+        procedure.execute(graph, CLASS);\r
     }\r
 \r
 }\r