From 35152a1958781333ca39cf0dde69e3c7a75df134 Mon Sep 17 00:00:00 2001 From: lempinen Date: Thu, 20 Jan 2011 14:38:50 +0000 Subject: [PATCH] Fix related probably to some databoard updates git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19442 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../org/simantics/sysdyn/ui/project/DefaultVariable.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultVariable.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultVariable.java index ad5bd59b..c2c3f30f 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultVariable.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultVariable.java @@ -13,13 +13,10 @@ package org.simantics.sysdyn.ui.project; import java.util.List; -import org.simantics.databoard.binding.Binding; -import org.simantics.databoard.Bindings; import org.simantics.databoard.Bindings; import org.simantics.databoard.Datatypes; -import org.simantics.databoard.primitives.MutableDouble; +import org.simantics.databoard.binding.Binding; import org.simantics.databoard.type.Datatype; -import org.simantics.databoard.type.DoubleType; import org.simantics.db.ReadGraph; import org.simantics.db.Resource; import org.simantics.db.WriteGraph; @@ -76,8 +73,7 @@ public class DefaultVariable extends ResourceVariable { Resource expression = expressionList.get(0); if(expression == null) return; if(!graph.isInstanceOf(expression, sr.ParameterExpression)) return; - Double value = new Double(((MutableDouble)object).doubleValue()); - graph.claimLiteral(expression, sr.HasEquation, value.toString(), Bindings.STRING); + graph.claimLiteral(expression, sr.HasEquation, object.toString(), Bindings.STRING); } @SuppressWarnings("unchecked") -- 2.47.1