package org.simantics.sysdyn.ui.project;\r
\r
+import java.util.ArrayList;\r
+\r
import org.simantics.databoard.Accessors;\r
import org.simantics.databoard.Bindings;\r
import org.simantics.databoard.accessor.Accessor;\r
System.out.println("HistoryVariable rvi='" + tmp + "'");\r
final String rvi = tmp.substring(1).replace("/", ".");\r
SysdynDataSet ds = sr.getDataSet(rvi);\r
- if(ds == null) return null;\r
-// assert(ds != null);\r
+ if(ds == null) ds = new SysdynDataSet("", "", new ArrayList<Double>(), new ArrayList<Double>()); // We need a dataset, so if not set, create it\r
try {\r
final RecordAccessor ac = (RecordAccessor)Accessors.getAccessor(Bindings.getBindingUnchecked(SysdynDataSet.class), ds);\r
\r
// TODO Auto-generated catch block\r
e.printStackTrace();\r
}\r
-// System.out.println("===================================================== NEW RESULT =====================================================");\r
- \r
}});\r
return (T)ac;\r
} catch (RuntimeBindingConstructionException e) {\r