]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Did not compile after change https://www.simantics.org/redmine/projects/simantics...
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 15 May 2012 14:23:39 +0000 (14:23 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 15 May 2012 14:23:39 +0000 (14:23 +0000)
refs #3448

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

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/profiles/SimulationPlaybackStyle.java

index bb5958512fec76d8a67cbf8254e94b91bd1c4d8f..09c0890297acc1c0049e5800737160baa0df7c25 100644 (file)
@@ -37,6 +37,7 @@ import org.simantics.scenegraph.profile.Observer;
 import org.simantics.scenegraph.profile.common.ProfileVariables;\r
 import org.simantics.scenegraph.utils.GeometryUtils;\r
 import org.simantics.scenegraph.utils.NodeUtil;\r
+import org.simantics.scl.runtime.tuple.Tuple2;\r
 import org.simantics.simulation.experiment.IExperiment;\r
 import org.simantics.simulation.project.IExperimentManager;\r
 import org.simantics.sysdyn.adapter.SysdynVariableProperties;\r
@@ -209,11 +210,11 @@ public class SimulationPlaybackStyle extends StyleBase<Triple<AffineTransform, D
     }\r
 \r
     @Override\r
-    public void styleResultChanged(Observer observer, Resource element, Triple<AffineTransform, Double, ColorGradient> result) {\r
+    public void styleResultChanged(Observer observer, Resource runtimeDiagram, Resource element, Triple<AffineTransform, Double, ColorGradient> result) {\r
         if (result != null)\r
-            values.put(element, result);\r
+            values.put(new Tuple2(runtimeDiagram, element), result);\r
         else\r
-            values.remove(element);\r
+            values.remove(new Tuple2(runtimeDiagram, element));\r
         observer.update();\r
     }\r
 \r