X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.history%2Fsrc%2Forg%2Fsimantics%2Fhistory%2FCollector.java;h=9dbce9bc1671aa949a87f981aa1e2c00a5d5ff3f;hb=9df6e0be9b9df41cd66a74e54ac70407a62ff4a1;hp=234c832f52dc640e8097067b9876830d71dcaa91;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.history/src/org/simantics/history/Collector.java b/bundles/org.simantics.history/src/org/simantics/history/Collector.java index 234c832f5..9dbce9bc1 100644 --- a/bundles/org.simantics.history/src/org/simantics/history/Collector.java +++ b/bundles/org.simantics.history/src/org/simantics/history/Collector.java @@ -215,4 +215,15 @@ public interface Collector { */ void setState(Bean newState); + /** + * Allows history collector writers to optimize their invocations of the collector. + * + * @return true if the this collector is enabled for collection or + * false otherwise. + * @since 1.50.0, 1.35.3, 1.48.0.1 + */ + default boolean isEnabled() { + return true; + } + }