This is an automated email from the git hooks/post-receive script. New commit to branch feature/686-ChangeSystemLanguageOnLangageSelectionChange in repository lima. See http://git.chorem.org/lima.git commit eef9aa97ecee1c4dbdbc82aa0bc299e193f31f5f Author: dcosse <cosse@codelutin.com> Date: Fri Sep 11 16:12:48 2015 +0200 refs #686 Redémarrage complet de lima pour que l'internationalisation soit complète --- .../java/org/chorem/lima/ui/MainViewHandler.java | 26 ++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java b/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java index 8b53397..f4ac639 100644 --- a/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java +++ b/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java @@ -52,22 +52,16 @@ import org.chorem.lima.ui.vatchart.VatChartView; import org.nuiton.util.DesktopUtil; import org.nuiton.widget.SwingSession; -import javax.swing.DefaultCellEditor; -import javax.swing.ImageIcon; -import javax.swing.JButton; -import javax.swing.JComboBox; -import javax.swing.JEditorPane; -import javax.swing.JScrollPane; -import javax.swing.JTabbedPane; -import javax.swing.UIManager; +import javax.swing.*; import javax.swing.border.LineBorder; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.plaf.BorderUIResource; -import java.awt.Component; +import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; +import java.io.IOException; import java.net.URI; import java.net.URL; import java.util.Locale; @@ -320,6 +314,8 @@ public class MainViewHandler { */ protected void reloadUI(LimaSwingApplicationContext rootContext) { + String version = LimaSwingApplicationContext.getContext().getConfig().getVersion(); + // must remove all properties listener on config LimaSwingApplicationContext.CONFIG_DEF.getContextValue(rootContext).removeJaxxPropertyChangeListener(); @@ -334,11 +330,13 @@ public class MainViewHandler { ui.setVisible(false); } - ui = initUI(rootContext); - - // show ui - ui.setVisible(true); - showHomeView(rootContext); + System.out.println("Lima-" + version + " restart !"); + try { + Runtime.getRuntime().exec("java -jar lima.jar"); + } catch (IOException e) { + e.printStackTrace(); + } + System.exit(0); } /** -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.