]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Obey Indexing.isDependenciesIndexingDisabled 48/2448/1
authorAntti Villberg <antti.villberg@semantum.fi>
Mon, 12 Nov 2018 07:22:27 +0000 (09:22 +0200)
committerAntti Villberg <antti.villberg@semantum.fi>
Mon, 12 Nov 2018 07:22:27 +0000 (09:22 +0200)
gitlab #192

Change-Id: If02e02fd4fc7f5ee65d3b80cb70fde3e0a5224cb

bundles/org.simantics.modeling/src/org/simantics/modeling/scl/SCLDependencyChangeListener.java

index 5e043d4a14c6c79554fd75f093802f83a2c2fa32..5173512ce7518cbbde7c6e3649e6a9d951de3175 100644 (file)
@@ -3,6 +3,7 @@ package org.simantics.modeling.scl;
 import org.simantics.Simantics;
 import org.simantics.db.MetadataI;
 import org.simantics.db.ReadGraph;
+import org.simantics.db.common.Indexing;
 import org.simantics.db.common.changeset.GenericChangeListener;
 import org.simantics.db.event.ChangeListener;
 import org.simantics.db.exception.DatabaseException;
@@ -24,6 +25,7 @@ public class SCLDependencyChangeListener extends GenericChangeListener<Dependenc
 
     @Override
     public boolean preEventRequest() {
+        if(Indexing.isDependenciesIndexingDisabled()) return false;
         return preEventRequest.apply(Tuple0.INSTANCE);
     }