]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.debug.browser.ui/src/org/simantics/debug/browser/ui/PlatformPropertyTester.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.debug.browser.ui / src / org / simantics / debug / browser / ui / PlatformPropertyTester.java
index c5e49f2a34d9225181444266a7d9935724ec0a04..1394894b57d71590f7bbe621512ac21b4094f1f9 100644 (file)
@@ -1,38 +1,38 @@
-/*******************************************************************************\r
- * Copyright (c) 2016 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
- *     THTH ry - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.debug.browser.ui;\r
-\r
-import org.eclipse.core.expressions.PropertyTester;\r
-import org.eclipse.core.runtime.Platform;\r
-\r
-/**\r
- * @author Tuukka Lehtonen / Semantum Oy\r
- */\r
-public class PlatformPropertyTester extends PropertyTester {\r
-\r
-    private static final String PROPERTY_IN_DEVELOPMENT_MODE = "inDevelopmentMode"; //$NON-NLS-1$\r
-\r
-    @Override\r
-    public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {\r
-        if (PROPERTY_IN_DEVELOPMENT_MODE.equals(property)) {\r
-            return parseBoolean(expectedValue, true) == Platform.inDevelopmentMode();\r
-        }\r
-        return false;\r
-    }\r
-\r
-    private boolean parseBoolean(Object value, boolean defaultValue) {\r
-        if (value instanceof Boolean) return (Boolean) value;\r
-        if (value instanceof String) return Boolean.parseBoolean((String) value);\r
-        return defaultValue;\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2016 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:
+ *     THTH ry - initial API and implementation
+ *******************************************************************************/
+package org.simantics.debug.browser.ui;
+
+import org.eclipse.core.expressions.PropertyTester;
+import org.eclipse.core.runtime.Platform;
+
+/**
+ * @author Tuukka Lehtonen / Semantum Oy
+ */
+public class PlatformPropertyTester extends PropertyTester {
+
+    private static final String PROPERTY_IN_DEVELOPMENT_MODE = "inDevelopmentMode"; //$NON-NLS-1$
+
+    @Override
+    public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
+        if (PROPERTY_IN_DEVELOPMENT_MODE.equals(property)) {
+            return parseBoolean(expectedValue, true) == Platform.inDevelopmentMode();
+        }
+        return false;
+    }
+
+    private boolean parseBoolean(Object value, boolean defaultValue) {
+        if (value instanceof Boolean) return (Boolean) value;
+        if (value instanceof String) return Boolean.parseBoolean((String) value);
+        return defaultValue;
+    }
+
+}