]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Use searchByTypeShallow in ModelingUtils.createMissingGUIDs 58/1658/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 26 Mar 2018 20:33:42 +0000 (23:33 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 26 Mar 2018 20:33:42 +0000 (23:33 +0300)
refs #7845

Change-Id: Idf9c33687c53a9725821911fce59d9cf7287ce9c

bundles/org.simantics.modeling/src/org/simantics/modeling/ModelingUtils.java

index 1f530f59f60306d13e3f86e9426ae5ce6e5565dd..de388b2576d5df5d1883faed042d27ca2ecfefde 100644 (file)
@@ -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();