This is an automated email from the git hooks/post-receive script. New commit to branch feature/1197-modularisation in repository lima. See http://git.chorem.org/lima.git commit cf1949b06498a6cd2520b9fb45c7fec813f68001 Author: Arnaud Thimel <thimel@codelutin.com> Date: Tue Mar 17 23:35:46 2015 +0100 Force BigDecimal formatting properties to be saved on server side --- .../main/java/org/chorem/lima/LimaSwingConfig.java | 38 +++++----------------- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/lima-swing/src/main/java/org/chorem/lima/LimaSwingConfig.java b/lima-swing/src/main/java/org/chorem/lima/LimaSwingConfig.java index caad54c..18a0d79 100644 --- a/lima-swing/src/main/java/org/chorem/lima/LimaSwingConfig.java +++ b/lima-swing/src/main/java/org/chorem/lima/LimaSwingConfig.java @@ -407,30 +407,6 @@ public class LimaSwingConfig extends ApplicationConfig implements BigDecimalToSt "fr_FR", Locale.class, false, false), -// DECIMAL_SEPARATOR("lima.data.bigDecimal.decimalSeparator", -// t("lima.config.decimalSeparator.label"), -// n("lima.config.decimalSeparator.description"), -// ",", -// Character.class, false, false), -// -// SCALE("lima.data.bigDecimal.scale", -// t("lima.config.scale.label"), -// n("lima.config.scale.description"), -// "2", -// Integer.class, false, false), -// -// THOUSAND_SEPARATOR("lima.thousandSeparator", -// t("lima.config.thousandSeparator.label"), -// n("lima.config.thousandSeparator.description"), -// " ", -// Character.class, false, false), -// -// CURRENCY("lima.config.currency", -// t("lima.config.currency.label"), -// n("lima.config.currency.description"), -// "false", -// Boolean.class, false, false), - LAUNCH_UI("lima.ui.launchui", t("lima.config.ui.launchUi.label"), n("lima.config.ui.launchUi.description"), @@ -734,11 +710,15 @@ public class LimaSwingConfig extends ApplicationConfig implements BigDecimalToSt // propagate scale option to serveur option optionsService = LimaServiceFactory.getService(OptionsService.class); -// // scale server option -// String scaleOption = getOption(Option.SCALE.key); -// if (StringUtils.isNotBlank(scaleOption)) { -// optionsService.setScale(scaleOption); -// } + // Need to push again the values to server + String scale = getOption(optionsService.getScaleOption().getKey()); + optionsService.setScale(scale); + boolean currency = getOptionAsBoolean(optionsService.getCurrencyOption().getKey()); + optionsService.setCurrency(currency); + String decimalSeparator = getOption(optionsService.getDecimalSeparatorOption().getKey()); + optionsService.setDecimalSeparator(decimalSeparator); + String throusandSeparator = getOption(optionsService.getThousandSeparatorOption().getKey()); + optionsService.setThousandSeparator(throusandSeparator); } } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.