]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.history/src/org/simantics/history/util/Stream.java
Added utility for truncating collected history data
[simantics/platform.git] / bundles / org.simantics.history / src / org / simantics / history / util / Stream.java
index dce3a6fc6e0941fff31590e0fd4346ce63cc7258..3366a1c26858751ef8017644b98efc28239847cc 100644 (file)
@@ -300,7 +300,16 @@ public class Stream {
                        throw new HistoryException(e);
                }
     }
-    
+
+       public Object getItemTime(Binding timeBinding, int index) throws HistoryException
+       {
+               try {
+                       return _getTime( accessor.get(index, sampleBinding), timeBinding );
+               } catch (AccessorException e) {
+                       throw new HistoryException( e );
+               }
+       }
+
     public Object getLowerTime(Binding timeBinding, Object time) throws HistoryException
     {
                try {