From: Tuukka Lehtonen Date: Mon, 26 Mar 2018 20:33:42 +0000 (+0300) Subject: Use searchByTypeShallow in ModelingUtils.createMissingGUIDs X-Git-Tag: v1.43.0~136^2~518 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=417eee8911a617038f5f10dfb1cae37ac4a45bef;p=simantics%2Fplatform.git Use searchByTypeShallow in ModelingUtils.createMissingGUIDs refs #7845 Change-Id: Idf9c33687c53a9725821911fce59d9cf7287ce9c --- diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/ModelingUtils.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/ModelingUtils.java index 1f530f59f..de388b257 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/ModelingUtils.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/ModelingUtils.java @@ -2371,7 +2371,7 @@ public class ModelingUtils { monitor.setTaskName("Creating missing GUID identifiers " + NameUtils.getSafeName(graph, root)); Resource indexRoot = graph.syncRequest(new PossibleIndexRoot(root)); - for(Resource r : searchByType(graph, indexRoot, L0.Entity)) { + for(Resource r : searchByTypeShallow(graph, indexRoot, L0.Entity)) { memory.maintain();