From 8eaf4c403cef54f3d9908318792bfb94913d2f9a Mon Sep 17 00:00:00 2001 From: lehtonen Date: Wed, 14 Jan 2015 07:44:11 +0000 Subject: [PATCH] Fixed os.sysdyn after the changes done to interface ValueAccessor in r30779. refs #5585 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30793 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/Functions.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/Functions.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/Functions.java index 04c2b623..12d9b8ae 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/Functions.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/Functions.java @@ -5,8 +5,10 @@ import java.util.HashMap; import java.util.Map; import org.simantics.databoard.Bindings; +import org.simantics.databoard.Datatypes; import org.simantics.databoard.binding.Binding; import org.simantics.databoard.binding.mutable.Variant; +import org.simantics.databoard.type.Datatype; import org.simantics.db.ReadGraph; import org.simantics.db.Resource; import org.simantics.db.WriteGraph; @@ -71,7 +73,12 @@ public class Functions { // TODO Auto-generated method stub } - + + @Override + public Datatype getDatatype(ReadGraph graph, Variable context) throws DatabaseException { + return All.getDatatypeFromValue(graph, context); + } + }; @SCLValue(type = "ValueAccessor") @@ -133,7 +140,12 @@ public class Functions { } } - + + @Override + public Datatype getDatatype(ReadGraph graph, Variable context) throws DatabaseException { + return Datatypes.STRING; + } + }; -- 2.47.1