]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fix related probably to some databoard updates
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 20 Jan 2011 14:38:50 +0000 (14:38 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 20 Jan 2011 14:38:50 +0000 (14:38 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19442 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultVariable.java

index ad5bd59b10dfbd39a3d035aea257c0d3dac2d31a..c2c3f30f40f47cc1f1f8ed2a48cfab95462434bf 100644 (file)
@@ -13,13 +13,10 @@ package org.simantics.sysdyn.ui.project;
 \r
 import java.util.List;\r
 \r
-import org.simantics.databoard.binding.Binding;\r
-import org.simantics.databoard.Bindings;\r
 import org.simantics.databoard.Bindings;\r
 import org.simantics.databoard.Datatypes;\r
-import org.simantics.databoard.primitives.MutableDouble;\r
+import org.simantics.databoard.binding.Binding;\r
 import org.simantics.databoard.type.Datatype;\r
-import org.simantics.databoard.type.DoubleType;\r
 import org.simantics.db.ReadGraph;\r
 import org.simantics.db.Resource;\r
 import org.simantics.db.WriteGraph;\r
@@ -76,8 +73,7 @@ public class DefaultVariable extends ResourceVariable {
                Resource expression = expressionList.get(0);\r
                if(expression == null) return;\r
                if(!graph.isInstanceOf(expression, sr.ParameterExpression)) return;\r
-               Double value = new Double(((MutableDouble)object).doubleValue());\r
-               graph.claimLiteral(expression, sr.HasEquation, value.toString(), Bindings.STRING);\r
+               graph.claimLiteral(expression, sr.HasEquation, object.toString(), Bindings.STRING);\r
        }\r
        \r
        @SuppressWarnings("unchecked")\r