-package org.simantics.history.csv;\r
-\r
-\r
-public enum ColumnSeparator {\r
- COMMA("Comma (,)", ","),TAB("Tabulator (\\t)","\t"),SEMICOLON("Semicolon (;)",";"),COLON("Colon (:)",":"),SPACE("Space ( )", " ");\r
- public String label;\r
- public String preference;\r
- ColumnSeparator(String label, String preference) {\r
- this.label = label;\r
- this.preference = preference;\r
- }\r
- public static ColumnSeparator fromIndex(int index) {\r
- return values()[index];\r
- }\r
- public String toPreference() {\r
- return preference;\r
- }\r
- public static ColumnSeparator fromPreference(String preference) {\r
- for(ColumnSeparator s : values()) {\r
- if(s.preference.equals(preference)) return s;\r
- }\r
- return COMMA;\r
- }\r
+package org.simantics.history.csv;
+
+
+public enum ColumnSeparator {
+ COMMA("Comma (,)", ","),TAB("Tabulator (\\t)","\t"),SEMICOLON("Semicolon (;)",";"),COLON("Colon (:)",":"),SPACE("Space ( )", " ");
+ public String label;
+ public String preference;
+ ColumnSeparator(String label, String preference) {
+ this.label = label;
+ this.preference = preference;
+ }
+ public static ColumnSeparator fromIndex(int index) {
+ return values()[index];
+ }
+ public String toPreference() {
+ return preference;
+ }
+ public static ColumnSeparator fromPreference(String preference) {
+ for(ColumnSeparator s : values()) {
+ if(s.preference.equals(preference)) return s;
+ }
+ return COMMA;
+ }
}
\ No newline at end of file