From 06cd4c71b46975c2d863d060117a829601125fe6 Mon Sep 17 00:00:00 2001 From: miettinen Date: Wed, 6 Nov 2013 08:19:54 +0000 Subject: [PATCH] Fix to (refs #4521) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28182 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../org/simantics/modelica/ModelicaManager.java | 11 +++++++---- org.simantics.sysdyn.ui/icons/dependency.png | Bin 387 -> 447 bytes .../icons/dependency_old.png | Bin 0 -> 387 bytes org.simantics.sysdyn.ui/icons/flow.png | Bin 349 -> 198 bytes org.simantics.sysdyn.ui/icons/flow_old.png | Bin 0 -> 349 bytes 5 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 org.simantics.sysdyn.ui/icons/dependency_old.png create mode 100644 org.simantics.sysdyn.ui/icons/flow_old.png diff --git a/org.simantics.modelica/src/org/simantics/modelica/ModelicaManager.java b/org.simantics.modelica/src/org/simantics/modelica/ModelicaManager.java index 5df32f8a..da8f6ba4 100644 --- a/org.simantics.modelica/src/org/simantics/modelica/ModelicaManager.java +++ b/org.simantics.modelica/src/org/simantics/modelica/ModelicaManager.java @@ -526,10 +526,8 @@ public class ModelicaManager { * @throws IOException */ public static Process runModelica(SimulationLocation location, IModelicaMonitor monitor, HashMap experimentParameters, HashMap parameterChanges) throws IOException { + ArrayList commands = new ArrayList(); try { - ArrayList commands = new ArrayList(); - commands.add(location.executableFile.getAbsolutePath()); - if(experimentParameters.get(RESULT_FILE_NAME) != null) { commands.add("-r="+experimentParameters.get(RESULT_FILE_NAME)); } @@ -566,7 +564,12 @@ public class ModelicaManager { e.printStackTrace(); } - return runWithEnvironment(location.omHome, location.getModelDir(), location.executableFile); + // Commands to String[] + String[] commandString = new String[commands.size()]; + for (int i = 0; i < commands.size(); ++i) + commandString[i] = commands.get(i); + + return runWithEnvironment(location.omHome, location.getModelDir(), location.executableFile, commandString); } public static String getFlatModelText(SimulationLocation location, IModelicaMonitor monitor, List additional) { diff --git a/org.simantics.sysdyn.ui/icons/dependency.png b/org.simantics.sysdyn.ui/icons/dependency.png index 6a604a309e7996e66446f40a00738e16c33b4199..768b55f7eeb98402d74a6a3d5f77aed1c4442a75 100644 GIT binary patch delta 421 zcmV;W0b2fp1HS{1B!32COGiWi{{a60|De66lK=n!32;bRa{vGf6951U69E94oEQKA z00(qQO+^RY3k3=&2kg|^tpET4Oi4sRR5;6>lRYm(aTJH2bMI|x5z)na#Afgvv}r_Q z_x1&R1w=}&M7r3lQYHh7ut-E}5K||?L{uRDUJhzCGi~IZsaVJ4f(h z>1Y7kzW`dq$Q5d?ajZLN&%t2<*EIm*DVRU*z;Ev(G71=!7laIu!f=VjCT{4)@)Wc= zZy+f|1Q8oc0>CiPi^T)^;v<0LDflvjIMRuthzQCH=nhB>Hd3uok|hE{ll~mQS`=NzDAzCU@;xBh?h< zl0JG~qbM0xgX&Y;6Of1J!3*pe#^Rs(IFR1s)}H5BgN|J3aUY^t^9fF_uf? P00000NkvXXu0mjfZ(Xm4 delta 360 zcmV-u0hj*21A_yQB!2{FK}|sb0I$e51&Zka000SaNLh0L01m_e01m_fl`9S#0000P zbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUz07*naR5(xVldn!gF%-tX zK?n>KL6FNcpr*m_1UvwOAo=GI*G!L5d;Yui`pQ(z<(skEaBesr!D8U4O1jz zC=z~2({oOHzJ5*9Rxt1jmh!wXe@vk4JwTo2Eb$|O@#_Rf=fj*O;wzk9KgC2vpsEmM ziwVL6rW!<5jEn6}h%n&ZaXYw-JzoNQoh^9ht=XGRXF?v{d$6QfbT*GhW3*QYcf+f6 zh2~^t2a?nvd0|wwf~@X*KuxyJ%|3HzE?RIi2Pfs@x3+~pEUvM!zJ{XM!F2kD)#VEJ zH{B?JMqnOZCeLAa{~{b5mbsFcTcF|itRGl7XNmv60DJyuc*MEaBesr!D8U4O1jzC=z~2({oOHzJ5*9Rxt1jmh!wXe@vk4 zJwTo2Eb$|O@#_Rf=fj*O;wzk9KgC2vpsEmMiwVL6rW!<5jEn6}h%n&ZaXYw-JzoNQ zoh^9ht=XGRXF?v{d$6QfbT*GhW3*QYcf+f6h2~^t2a?nvc~rH6tnPe3O}5U>K67X; zT5vN5C*|X}wuL_|uCcMchN9TPboz$X;s3&tZ4}A{-o+xssS$pyBwe hA6PhNiT}RRV|2aZlG@y@x=+-@Y0^~Y z{tF^bP0l+XkKz|c3? delta 322 zcmV-I0logl0o?+SB!2{FK}|sb0I$e51&Zka000?uMObuGZ)S9NVRB^vL1b@YWgtmy zVP|DhWnpA_ami&o0002*Nklo>#A z+qW*AYQLZl(!&BX$x7Ik;qO170ssEM@$bKXf%rGW?|(r27bf-TSvD}TdX0CM*JhkLO)8|Y^+n~Q^sK~hqR;q|N6 z47YFGy>NTZJv$qC7!U&t3bieO7VHPw{0OL7o#a@!(0}y=Q1d~cYjrVVVT9)e00`&6 UH{EQk&;S4c07*qoM6N<$g3i~NuK)l5 diff --git a/org.simantics.sysdyn.ui/icons/flow_old.png b/org.simantics.sysdyn.ui/icons/flow_old.png new file mode 100644 index 0000000000000000000000000000000000000000..b1a1819238c6de8f9e50988f4151261fa6ba64ea GIT binary patch literal 349 zcmV-j0iyniP)o>#A+qW*AYQLZl(!&BX$x7Ik;qO170ssEM z@$bKXf%rGW?|(r27bf-TSv zD}TdX0CM*JhkLO)8|Y^+n~Q^sK~hqR;q|N647YFGy>NTZJsWr!5CaSfwJm@a><8NX v2&h?|