From: lempinen Date: Thu, 20 Jan 2011 14:38:50 +0000 (+0000) Subject: Fix related probably to some databoard updates X-Git-Tag: 2011-04-05-db-merge-trunk~32 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=35152a1958781333ca39cf0dde69e3c7a75df134;p=simantics%2Fsysdyn.git Fix related probably to some databoard updates git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19442 ac1ea38d-2e2b-0410-8846-a27921b304fc --- 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")