]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexPolicy.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.indexing / src / org / simantics / db / indexing / IndexPolicy.java
index bb7286a79d3eaf9e292bfa080a7b9472e5e665c4..04360773d0bc9b4ec141e85c39dd5e6f8504c873 100644 (file)
@@ -1,55 +1,55 @@
-/*******************************************************************************\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.indexing;\r
-\r
-import org.eclipse.core.runtime.Platform;\r
-\r
-/**\r
- * Contains indexing-related debugging and tracing flags.\r
- * \r
- * @author Tuukka Lehtonen\r
- */\r
-public final class IndexPolicy {\r
-\r
-    // General debug flag for the plugin\r
-    public static boolean DEBUG = false;\r
-\r
-    public static boolean DEBUG_INDEX_INIT       = false;\r
-    public static boolean TRACE_INDEX_MANAGEMENT = false;\r
-    public static boolean TRACE_INDEX_INIT       = false;\r
-    public static boolean TRACE_INDEX_LOAD       = false;\r
-    public static boolean TRACE_INDEX_LOCKING    = false;\r
-    public static boolean TRACE_INDEX_UPDATE     = false;\r
-    public static boolean PERF_INDEX_INIT        = false;\r
-    public static boolean PERF_INDEX_LOAD        = false;\r
-    public static boolean PERF_INDEX_UPDATE      = false;\r
-    public static boolean PERF_INDEX_QUERY       = false;\r
-\r
-    static {\r
-        if (Activator.getDefault().isDebugging()) {\r
-            DEBUG = true;\r
-            String sTrue = Boolean.TRUE.toString();\r
-\r
-            DEBUG_INDEX_INIT = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/debug/indexInit")); //$NON-NLS-1$\r
-            TRACE_INDEX_MANAGEMENT = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexManagement")); //$NON-NLS-1$\r
-            TRACE_INDEX_INIT = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexInit")); //$NON-NLS-1$\r
-            TRACE_INDEX_LOAD = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexLoad")); //$NON-NLS-1$\r
-            TRACE_INDEX_LOCKING = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexLocking")); //$NON-NLS-1$\r
-            TRACE_INDEX_UPDATE = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexUpdate")); //$NON-NLS-1$\r
-            PERF_INDEX_INIT = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/perf/indexInit")); //$NON-NLS-1$\r
-            PERF_INDEX_LOAD = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/perf/indexLoad")); //$NON-NLS-1$\r
-            PERF_INDEX_UPDATE = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/perf/indexUpdate")); //$NON-NLS-1$\r
-            PERF_INDEX_QUERY = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/perf/indexQuery")); //$NON-NLS-1$\r
-        }\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.indexing;
+
+import org.eclipse.core.runtime.Platform;
+
+/**
+ * Contains indexing-related debugging and tracing flags.
+ * 
+ * @author Tuukka Lehtonen
+ */
+public final class IndexPolicy {
+
+    // General debug flag for the plugin
+    public static boolean DEBUG = false;
+
+    public static boolean DEBUG_INDEX_INIT       = false;
+    public static boolean TRACE_INDEX_MANAGEMENT = false;
+    public static boolean TRACE_INDEX_INIT       = false;
+    public static boolean TRACE_INDEX_LOAD       = false;
+    public static boolean TRACE_INDEX_LOCKING    = false;
+    public static boolean TRACE_INDEX_UPDATE     = false;
+    public static boolean PERF_INDEX_INIT        = false;
+    public static boolean PERF_INDEX_LOAD        = false;
+    public static boolean PERF_INDEX_UPDATE      = false;
+    public static boolean PERF_INDEX_QUERY       = false;
+
+    static {
+        if (Activator.getDefault().isDebugging()) {
+            DEBUG = true;
+            String sTrue = Boolean.TRUE.toString();
+
+            DEBUG_INDEX_INIT = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/debug/indexInit")); //$NON-NLS-1$
+            TRACE_INDEX_MANAGEMENT = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexManagement")); //$NON-NLS-1$
+            TRACE_INDEX_INIT = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexInit")); //$NON-NLS-1$
+            TRACE_INDEX_LOAD = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexLoad")); //$NON-NLS-1$
+            TRACE_INDEX_LOCKING = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexLocking")); //$NON-NLS-1$
+            TRACE_INDEX_UPDATE = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/trace/indexUpdate")); //$NON-NLS-1$
+            PERF_INDEX_INIT = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/perf/indexInit")); //$NON-NLS-1$
+            PERF_INDEX_LOAD = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/perf/indexLoad")); //$NON-NLS-1$
+            PERF_INDEX_UPDATE = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/perf/indexUpdate")); //$NON-NLS-1$
+            PERF_INDEX_QUERY = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.BUNDLE_ID + "/perf/indexQuery")); //$NON-NLS-1$
+        }
+    }
+
+}