--- /dev/null
+/*******************************************************************************\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.structural2.modelingRules;\r
+\r
+import org.eclipse.core.runtime.Platform;\r
+import org.simantics.structural2.internal.Activator;\r
+\r
+/**\r
+ * @author Tuukka Lehtonen\r
+ */\r
+public final class Policy {\r
+\r
+ public static boolean DEBUG = false;\r
+\r
+ public static boolean DEBUG_STANDARD_MODELING_RULES = false;\r
+\r
+ public static boolean DEBUG_CONNECTION_CONSTRAINTS = false;\r
+\r
+ static {\r
+ if (Activator.getDefault().isDebugging()) {\r
+ DEBUG = true;\r
+ String sTrue = Boolean.TRUE.toString();\r
+\r
+ DEBUG_STANDARD_MODELING_RULES = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.PLUGIN_ID + "/debug/modelingrules/standard")); //$NON-NLS-1$\r
+ DEBUG_CONNECTION_CONSTRAINTS = sTrue.equalsIgnoreCase(Platform.getDebugOption(Activator.PLUGIN_ID + "/debug/modelingrules/connectionConstraints")); //$NON-NLS-1$\r
+ }\r
+ }\r
+\r
+}\r