]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
fixes #5234
authorjussi.koskela <jussi.koskela@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 27 Aug 2014 10:49:36 +0000 (10:49 +0000)
committerjussi.koskela <jussi.koskela@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 27 Aug 2014 10:49:36 +0000 (10:49 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30150 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/ValueIndexVariable.java

index 6fb6f77d5b7c1c40f1dca6716a60cdc32337345f..e2ab2e44f46e6f65c7a4c960c2bd64b5a5e633c8 100644 (file)
@@ -1,5 +1,7 @@
 package org.simantics.sysdyn.adapter;\r
 \r
+import org.simantics.databoard.Datatypes;\r
+import org.simantics.databoard.type.Datatype;\r
 import org.simantics.db.ReadGraph;\r
 import org.simantics.db.exception.DatabaseException;\r
 import org.simantics.db.layer0.variable.Variable;\r
@@ -28,4 +30,13 @@ public class ValueIndexVariable extends ValueIndexVariableBase<Object> {
                }\r
        }\r
        \r
+       @Override\r
+       public Datatype getDatatype(ReadGraph graph) throws DatabaseException {\r
+               if (scalar) {\r
+                       return Datatypes.DOUBLE;\r
+               } else {\r
+                       return Datatypes.DOUBLE_ARRAY;\r
+               }\r
+       }\r
+       \r
 }\r