]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.history/src/org/simantics/history/csv/DecimalSeparator.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.history / src / org / simantics / history / csv / DecimalSeparator.java
index caba6e4073fcbf563fc480cebefe14c9a3810ffe..88154bb5157b2fd93c2b0a1956d7768ac6f6e20b 100644 (file)
@@ -1,31 +1,31 @@
-package org.simantics.history.csv;\r
-\r
-\r
-public enum DecimalSeparator {\r
-       DOT("Dot (.)","."),COMMA("Comma (,)",",");\r
-       public String label;\r
-       public String preference;\r
-       DecimalSeparator(String label, String preference) {\r
-               this.label = label;\r
-               this.preference = preference;\r
-       }\r
-       public static DecimalSeparator fromIndex(int index) {\r
-               return values()[index];\r
-       }\r
-       public String toPreference() {\r
-               return preference;\r
-       }\r
-       public static DecimalSeparator fromPreference(String preference) {\r
-               for(DecimalSeparator s : values()) {\r
-                       if(s.preference.equals(preference)) return s;\r
-               }\r
-               return DOT;\r
-       }\r
-       public static DecimalSeparator fromChar(char c) {\r
-               String preference = "" + c;\r
-               for(DecimalSeparator s : values()) {\r
-                       if(s.preference.equals(preference)) return s;\r
-               }\r
-               return DOT;\r
-       }\r
+package org.simantics.history.csv;
+
+
+public enum DecimalSeparator {
+       DOT("Dot (.)","."),COMMA("Comma (,)",",");
+       public String label;
+       public String preference;
+       DecimalSeparator(String label, String preference) {
+               this.label = label;
+               this.preference = preference;
+       }
+       public static DecimalSeparator fromIndex(int index) {
+               return values()[index];
+       }
+       public String toPreference() {
+               return preference;
+       }
+       public static DecimalSeparator fromPreference(String preference) {
+               for(DecimalSeparator s : values()) {
+                       if(s.preference.equals(preference)) return s;
+               }
+               return DOT;
+       }
+       public static DecimalSeparator fromChar(char c) {
+               String preference = "" + c;
+               for(DecimalSeparator s : values()) {
+                       if(s.preference.equals(preference)) return s;
+               }
+               return DOT;
+       }
 }
\ No newline at end of file