refs #4529
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28170
ac1ea38d-2e2b-0410-8846-
a27921b304fc
for(int j = 0; j < ds.times.length; j++) {\r
result[i][j] = ds.times[j];\r
}\r
- } else {\r
- result[i] = new double[0];\r
+ break; // Show the first result found. (i.e. do not show history datasets)\r
}\r
}\r
+ if(result[i] == null)\r
+ result[i] = new double[0];\r
}\r
return result;\r
}\r
double d = ((SysdynGameExperiment)experiment).getCurrentValue(variableNames.get(i));\r
result[i][ds.values.length - 1] = d;\r
}\r
- \r
- } else {\r
- result[i] = new double[0];\r
+ break; // Show the first result found. (i.e. do not show history datasets)\r
}\r
+ \r
+ if(result[i] == null)\r
+ result[i] = new double[0];\r
}\r
}\r
}\r
try {\r
StringReader reader = new StringReader(expression);\r
UnitParser parser = new UnitParser(reader);\r
+ System.out.println("expression " + expression);\r
UnitCheckingNode node = (UnitCheckingNode) parser.expr();\r
reader.close();\r
Set<String> components = UnitUtils.findComponents(node);\r