]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.charts/src/org/simantics/charts/editor/BooleanToDoubleAdapter.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.charts / src / org / simantics / charts / editor / BooleanToDoubleAdapter.java
index 941fd95428476419818d0f9f2d7945807e482a83..cac0173739addd816a44e371f4466fed7beaa9fe 100644 (file)
@@ -1,34 +1,34 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2011 VTT Technical Research Centre of Finland and others.\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.charts.editor;\r
-\r
-import org.simantics.databoard.adapter.AdaptException;\r
-import org.simantics.databoard.adapter.Adapter;\r
-import org.simantics.databoard.adapter.RuntimeAdaptException;\r
-\r
-public class BooleanToDoubleAdapter implements Adapter {\r
-\r
-       public static final BooleanToDoubleAdapter INSTANCE = new BooleanToDoubleAdapter();\r
-       \r
-       @Override\r
-       public Object adapt(Object obj) throws AdaptException {\r
-               Boolean b = (Boolean) obj;\r
-               return b ? 1.0 : 0.0;\r
-       }\r
-\r
-       @Override\r
-       public Object adaptUnchecked(Object obj) throws RuntimeAdaptException {\r
-               Boolean b = (Boolean) obj;\r
-               return b ? 1.0 : 0.0;\r
-       }\r
-\r
-}\r
-\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2011 VTT Technical Research Centre of Finland and others.
+ * 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.charts.editor;
+
+import org.simantics.databoard.adapter.AdaptException;
+import org.simantics.databoard.adapter.Adapter;
+import org.simantics.databoard.adapter.RuntimeAdaptException;
+
+public class BooleanToDoubleAdapter implements Adapter {
+
+       public static final BooleanToDoubleAdapter INSTANCE = new BooleanToDoubleAdapter();
+       
+       @Override
+       public Object adapt(Object obj) throws AdaptException {
+               Boolean b = (Boolean) obj;
+               return b ? 1.0 : 0.0;
+       }
+
+       @Override
+       public Object adaptUnchecked(Object obj) throws RuntimeAdaptException {
+               Boolean b = (Boolean) obj;
+               return b ? 1.0 : 0.0;
+       }
+
+}
+