X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.graph.compiler%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fcompiler%2Finternal%2Fprocedures%2FAddConsistsOf.java;fp=bundles%2Forg.simantics.graph.compiler%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fcompiler%2Finternal%2Fprocedures%2FAddConsistsOf.java;h=0c3d186dbf93e3d7b122a9388bd1861dfdb1e93f;hp=7a2f87a7c35bc5b52e6ca7da53117dfa3e15486a;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/AddConsistsOf.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/AddConsistsOf.java index 7a2f87a7c..0c3d186db 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/AddConsistsOf.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/AddConsistsOf.java @@ -1,37 +1,37 @@ -package org.simantics.graph.compiler.internal.procedures; - -import gnu.trove.procedure.TObjectProcedure; - -import org.simantics.graph.query.Paths; -import org.simantics.graph.store.GraphStore; -import org.simantics.graph.store.IdentityStore; -import org.simantics.graph.store.IdentityStore.ConsistsOf; -import org.simantics.graph.store.StatementStore; - -public class AddConsistsOf implements Runnable { - - GraphStore store; - Paths paths; - - public AddConsistsOf(Paths paths, GraphStore store) { - this.paths = paths; - this.store = store; - } - - @Override - public void run() { - final IdentityStore identities = store.identities; - final int consistsOf = identities.createPathToId(paths.ConsistsOf); - final StatementStore statements = store.statements; - identities.forEachChild(new TObjectProcedure() { - - @Override - public boolean execute(ConsistsOf co) { - if(identities.isNewResource(co.child)) - statements.add(co.parent, consistsOf, co.child); - return true; - } - }); - } - -} +package org.simantics.graph.compiler.internal.procedures; + +import gnu.trove.procedure.TObjectProcedure; + +import org.simantics.graph.query.Paths; +import org.simantics.graph.store.GraphStore; +import org.simantics.graph.store.IdentityStore; +import org.simantics.graph.store.IdentityStore.ConsistsOf; +import org.simantics.graph.store.StatementStore; + +public class AddConsistsOf implements Runnable { + + GraphStore store; + Paths paths; + + public AddConsistsOf(Paths paths, GraphStore store) { + this.paths = paths; + this.store = store; + } + + @Override + public void run() { + final IdentityStore identities = store.identities; + final int consistsOf = identities.createPathToId(paths.ConsistsOf); + final StatementStore statements = store.statements; + identities.forEachChild(new TObjectProcedure() { + + @Override + public boolean execute(ConsistsOf co) { + if(identities.isNewResource(co.child)) + statements.add(co.parent, consistsOf, co.child); + return true; + } + }); + } + +}