]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/org/simantics/db/procore/cluster/ClusterPrintDebugInfo.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.procore / src / org / simantics / db / procore / cluster / ClusterPrintDebugInfo.java
index a8d4b052f1fe5f1577f721e28d6e42c4ce298560..e3a37f8b036f90e48508e10dba1674ed46296335 100644 (file)
@@ -1,56 +1,56 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.db.procore.cluster;\r
-\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.impl.ClusterBase;\r
-import org.simantics.db.impl.ClusterI;\r
-import org.simantics.db.impl.ClusterSupport;\r
-\r
-public class ClusterPrintDebugInfo\r
-implements ClusterI.ObjectProcedure<Integer> {\r
-    private ClusterBase cluster;\r
-    private ClusterSupport support;\r
-    private ObjectTable ot;\r
-    private int n = 0;\r
-       public ClusterPrintDebugInfo(ClusterBase cluster, ResourceTable resourceTable\r
-                       , PredicateTable predicateTable, ClusterSupport support,\r
-                    ObjectTable ot) throws DatabaseException {\r
-               this.cluster = cluster;\r
-               if (null == support)\r
-                   throw new DatabaseException("Illegal argument.");\r
-               this.support = support;\r
-               this.ot = ot;\r
-       }\r
-       \r
-    @Override\r
-    public boolean execute(Integer i, int resourceRef) {\r
-        int resourceKey;\r
-        try {\r
-            resourceKey = ClusterTraits.createResourceKey(cluster.getClusterKey(), resourceRef);\r
-        } catch (DatabaseException e) {\r
-            e.printStackTrace();\r
-            return false; // continue loop\r
-        }\r
-        CalculateStatements cs = new CalculateStatements(resourceRef, ot);\r
-        try {\r
-            cluster.forPredicates(resourceKey, cs, cs, support);\r
-        } catch (Throwable t) {\r
-            t.printStackTrace();\r
-        }\r
-        return false; // continue loop\r
-    }\r
-       public int getSize() {\r
-               return n;\r
-       }\r
-       \r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.db.procore.cluster;
+
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.impl.ClusterBase;
+import org.simantics.db.impl.ClusterI;
+import org.simantics.db.impl.ClusterSupport;
+
+public class ClusterPrintDebugInfo
+implements ClusterI.ObjectProcedure<Integer> {
+    private ClusterBase cluster;
+    private ClusterSupport support;
+    private ObjectTable ot;
+    private int n = 0;
+       public ClusterPrintDebugInfo(ClusterBase cluster, ResourceTable resourceTable
+                       , PredicateTable predicateTable, ClusterSupport support,
+                    ObjectTable ot) throws DatabaseException {
+               this.cluster = cluster;
+               if (null == support)
+                   throw new DatabaseException("Illegal argument.");
+               this.support = support;
+               this.ot = ot;
+       }
+       
+    @Override
+    public boolean execute(Integer i, int resourceRef) {
+        int resourceKey;
+        try {
+            resourceKey = ClusterTraits.createResourceKey(cluster.getClusterKey(), resourceRef);
+        } catch (DatabaseException e) {
+            e.printStackTrace();
+            return false; // continue loop
+        }
+        CalculateStatements cs = new CalculateStatements(resourceRef, ot);
+        try {
+            cluster.forPredicates(resourceKey, cs, cs, support);
+        } catch (Throwable t) {
+            t.printStackTrace();
+        }
+        return false; // continue loop
+    }
+       public int getSize() {
+               return n;
+       }
+       
+}