X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.history%2Fsrc%2Forg%2Fsimantics%2Fhistory%2Futil%2FStream.java;h=3366a1c26858751ef8017644b98efc28239847cc;hb=f3617565a8ffe49d63016f0c1d78e0d4282214b0;hp=dce3a6fc6e0941fff31590e0fd4346ce63cc7258;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.history/src/org/simantics/history/util/Stream.java b/bundles/org.simantics.history/src/org/simantics/history/util/Stream.java index dce3a6fc6..3366a1c26 100644 --- a/bundles/org.simantics.history/src/org/simantics/history/util/Stream.java +++ b/bundles/org.simantics.history/src/org/simantics/history/util/Stream.java @@ -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 {