From: miettinen Date: Fri, 23 Aug 2013 09:59:36 +0000 (+0000) Subject: The default Modelica solver set to the bundled one in Windows (refs #4401). X-Git-Tag: 1.8.1~252 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=7fddda8c53810d12f2e5f4af1231af983e7a5536;p=simantics%2Fsysdyn.git The default Modelica solver set to the bundled one in Windows (refs #4401). Print to the Sysdyn console which solver is used when simulating. Some little fixes, too. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27770 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.modelica/src/org/simantics/modelica/ModelicaManager.java b/org.simantics.modelica/src/org/simantics/modelica/ModelicaManager.java index d2f2d43a..a9535e73 100644 --- a/org.simantics.modelica/src/org/simantics/modelica/ModelicaManager.java +++ b/org.simantics.modelica/src/org/simantics/modelica/ModelicaManager.java @@ -114,21 +114,20 @@ public class ModelicaManager { } public static File getDefaultModelicaHome() { - // Try to find installed openModelica - File omhome = getInstalledOpenModelicaHome(); - if(omhome != null) - return omhome; - // Get operating system OSType os = calculateOS(); - // OPENMODELICAHOMe was not found or the folder does not exist. Try built-in OpenModelica for windows + // Try built-in OpenModelica for windows if(os.equals(OSType.WINDOWS)) { File builtin = getBuiltinOpenModelicaHome(); if(builtin != null) return builtin; } + // Try to find installed openModelica + File omhome = getInstalledOpenModelicaHome(); + if(omhome != null) + return omhome; // OS was not windows or built-in OpenModelica did not work switch (os) { diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ResourceSelectionProcessor.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ResourceSelectionProcessor.java index 604c924b..744e6316 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ResourceSelectionProcessor.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ResourceSelectionProcessor.java @@ -177,7 +177,7 @@ public class ResourceSelectionProcessor implements SelectionProcessor