X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=inline;f=bundles%2Forg.simantics.history%2Fsrc%2Forg%2Fsimantics%2Fhistory%2Fcsv%2FDecimalSeparator.java;h=88154bb5157b2fd93c2b0a1956d7768ac6f6e20b;hb=dac7a40d1cf85956aeac63ccbdf5b7a0d9977ac3;hp=caba6e4073fcbf563fc480cebefe14c9a3810ffe;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.history/src/org/simantics/history/csv/DecimalSeparator.java b/bundles/org.simantics.history/src/org/simantics/history/csv/DecimalSeparator.java index caba6e407..88154bb51 100644 --- a/bundles/org.simantics.history/src/org/simantics/history/csv/DecimalSeparator.java +++ b/bundles/org.simantics.history/src/org/simantics/history/csv/DecimalSeparator.java @@ -1,31 +1,31 @@ -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; - } +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