Prefs: generate XConfiguration.xml in nw mode when it does not exist 13/13913/3
Calixte DENIZET [Wed, 5 Mar 2014 13:06:41 +0000 (14:06 +0100)]
Change-Id: I99549f0c90d0c85bc63e9dade35c1dbc02aa52f4

scilab/modules/core/src/java/org/scilab/modules/core/Scilab.java

index 232a7a6..7f7a63c 100644 (file)
@@ -30,6 +30,7 @@ import org.flexdock.docking.DockingManager;
 import org.scilab.modules.commons.OS;
 import org.scilab.modules.commons.ScilabCommonsUtils;
 import org.scilab.modules.commons.ScilabConstants;
+import org.scilab.modules.commons.xml.XConfiguration;
 import org.scilab.modules.graphic_objects.graphicController.GraphicController;
 import org.scilab.modules.graphic_objects.graphicObject.GraphicObject.Type;
 import org.scilab.modules.graphic_objects.utils.MenuBarBuilder;
@@ -57,6 +58,7 @@ public class Scilab {
 
     static {
         System.setProperty("java.protocol.handler.pkgs", "org.scilab.modules.commons");
+        XConfiguration.getXConfigurationDocument();
     }
 
     /** Index of windows vista version */