From: jussi.koskela Date: Wed, 27 Aug 2014 10:49:36 +0000 (+0000) Subject: fixes #5234 X-Git-Tag: v1.29.0~203 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=25bd3adc50de357816aa51b021b08163e2bc82e6;p=simantics%2Fsysdyn.git fixes #5234 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30150 ac1ea38d-2e2b-0410-8846-a27921b304fc --- 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; + } + } + }