From 25bd3adc50de357816aa51b021b08163e2bc82e6 Mon Sep 17 00:00:00 2001 From: "jussi.koskela" Date: Wed, 27 Aug 2014 10:49:36 +0000 Subject: [PATCH] fixes #5234 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30150 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../simantics/sysdyn/adapter/ValueIndexVariable.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/ValueIndexVariable.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/ValueIndexVariable.java index 6fb6f77d..e2ab2e44 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/ValueIndexVariable.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/ValueIndexVariable.java @@ -1,5 +1,7 @@ package org.simantics.sysdyn.adapter; +import org.simantics.databoard.Datatypes; +import org.simantics.databoard.type.Datatype; import org.simantics.db.ReadGraph; import org.simantics.db.exception.DatabaseException; import org.simantics.db.layer0.variable.Variable; @@ -28,4 +30,13 @@ public class ValueIndexVariable extends ValueIndexVariableBase { } } + @Override + public Datatype getDatatype(ReadGraph graph) throws DatabaseException { + if (scalar) { + return Datatypes.DOUBLE; + } else { + return Datatypes.DOUBLE_ARRAY; + } + } + } -- 2.47.1