1 package org.simantics.graph.compiler.internal.procedures;
3 import org.simantics.graph.store.GraphStore;
4 import org.simantics.graph.store.IdentityStore;
6 public class PropagateNewMarks implements Runnable {
7 IdentityStore identities;
9 public PropagateNewMarks(GraphStore store) {
10 this.identities = store.identities;
13 private void propagateNewMarks(int resource) {
14 for(int child : identities.getChildren(resource))
15 if(identities.markNew(child))
16 propagateNewMarks(child);
21 for(int resource : identities.getNewResources())
22 propagateNewMarks(resource);