]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/AddConsistsOf.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.graph.compiler / src / org / simantics / graph / compiler / internal / procedures / AddConsistsOf.java
index 7a2f87a7c35bc5b52e6ca7da53117dfa3e15486a..0c3d186dbf93e3d7b122a9388bd1861dfdb1e93f 100644 (file)
@@ -1,37 +1,37 @@
-package org.simantics.graph.compiler.internal.procedures;\r
-\r
-import gnu.trove.procedure.TObjectProcedure;\r
-\r
-import org.simantics.graph.query.Paths;\r
-import org.simantics.graph.store.GraphStore;\r
-import org.simantics.graph.store.IdentityStore;\r
-import org.simantics.graph.store.IdentityStore.ConsistsOf;\r
-import org.simantics.graph.store.StatementStore;\r
-\r
-public class AddConsistsOf implements Runnable {\r
-\r
-       GraphStore store;\r
-       Paths paths;\r
-               \r
-       public AddConsistsOf(Paths paths, GraphStore store) {\r
-           this.paths = paths;\r
-               this.store = store;\r
-       }\r
-\r
-       @Override\r
-       public void run() {\r
-               final IdentityStore identities = store.identities;\r
-               final int consistsOf = identities.createPathToId(paths.ConsistsOf);\r
-               final StatementStore statements = store.statements;\r
-               identities.forEachChild(new TObjectProcedure<IdentityStore.ConsistsOf>() {\r
-            \r
-            @Override\r
-            public boolean execute(ConsistsOf co) {\r
-                if(identities.isNewResource(co.child))\r
-                    statements.add(co.parent, consistsOf, co.child);\r
-                return true;\r
-            }\r
-        });\r
-       }       \r
-\r
-}\r
+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<IdentityStore.ConsistsOf>() {
+            
+            @Override
+            public boolean execute(ConsistsOf co) {
+                if(identities.isNewResource(co.child))
+                    statements.add(co.parent, consistsOf, co.child);
+                return true;
+            }
+        });
+       }       
+
+}