X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.history%2Fsrc%2Forg%2Fsimantics%2Fhistory%2Fcsv%2FColumnSeparator.java;h=003f4ebe96bf39ec9dfa0e2f41dc163f0d65607b;hp=0d6348c94b181395841814e34f5ffc7fa83198f6;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.history/src/org/simantics/history/csv/ColumnSeparator.java b/bundles/org.simantics.history/src/org/simantics/history/csv/ColumnSeparator.java index 0d6348c94..003f4ebe9 100644 --- a/bundles/org.simantics.history/src/org/simantics/history/csv/ColumnSeparator.java +++ b/bundles/org.simantics.history/src/org/simantics/history/csv/ColumnSeparator.java @@ -1,24 +1,24 @@ -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; - } +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