]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.history/src/org/simantics/history/Collector.java
Add more databoard reading utilities to ByteFileReader
[simantics/platform.git] / bundles / org.simantics.history / src / org / simantics / history / Collector.java
index 234c832f52dc640e8097067b9876830d71dcaa91..9dbce9bc1671aa949a87f981aa1e2c00a5d5ff3f 100644 (file)
@@ -215,4 +215,15 @@ public interface Collector {
         */
        void setState(Bean newState);
 
         */
        void setState(Bean newState);
 
+       /**
+        * Allows history collector writers to optimize their invocations of the collector.
+        * 
+        * @return <code>true</code> if the this collector is enabled for collection or
+        *         <code>false</code> otherwise.
+        * @since 1.50.0, 1.35.3, 1.48.0.1
+        */
+       default boolean isEnabled() {
+               return true;
+       }
+
 }
 }