/*******************************************************************************\r
- * Copyright (c) 2010, 2012 Association for Decentralized Information Management in\r
+ * Copyright (c) 2010, 2012, 2015 Association for Decentralized Information Management in\r
* Industry THTH ry.\r
* All rights reserved. This program and the accompanying materials\r
* are made available under the terms of the Eclipse Public License v1.0\r
*/\r
public class ModelicaManager {\r
\r
- private static final String OM_BUILTIN = "OpenModelica1.9.0";\r
+ private static final String OM_BUILTIN = "OM192";\r
\r
public enum OSType {\r
APPLE, LINUX, SUN, WINDOWS, UNKNOWN\r
}\r
\r
public static String getOMVersion(File home) {\r
- return getProcessOutput(runOMC(home, home, "++v"));\r
+ return getProcessOutput(runOMC(home, home, "--version"));\r
}\r
\r
public static String getDefaultOMVersion() {\r
}\r
\r
public static File getBuiltinOMHome() {\r
- Bundle bundle = Platform.getBundle("org.simantics.openmodelica.win32");\r
+ Bundle bundle = Platform.getBundle("org.simantics.om.win32");\r
if (bundle != null) {\r
try {\r
File omHome = new File(FileLocator.getBundleFile(bundle), OM_BUILTIN);\r
\r
// Create simulation files from the full description\r
ArrayList<String> parameters = new ArrayList<String>();\r
- parameters.add("+s");\r
+ parameters.add("-s");\r
parameters.add(simulationLocation.fullModelFile.getAbsolutePath());\r
\r
- Process process = runOMC(simulationLocation.omHome, simulationLocation.fullModelDir, "+s", simulationLocation.fullModelFile.getAbsolutePath());\r
+ Process process = runOMC(simulationLocation.omHome, simulationLocation.fullModelDir, "-s", simulationLocation.fullModelFile.getAbsolutePath());\r
\r
process.waitFor();\r
\r
<feature\r
id="org.simantics.sysdyn"\r
label="Simantics System Dynamics Feature"\r
- version="1.8.0.qualifier"\r
+ version="1.9.0.qualifier"\r
provider-name="VTT Technical Research Centre of Finland">\r
\r
<description url="http://www.example.com/description">\r
unpack="false"/>\r
\r
<plugin\r
- id="org.simantics.openmodelica.win32"\r
+ id="org.simantics.om.win32"\r
os="win32"\r
download-size="0"\r
install-size="0"\r
<?xml version="1.0" encoding="UTF-8"?>\r
<classpath>\r
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>\r
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>\r
<classpathentry kind="src" path="src"/>\r
<classpathentry kind="output" path="bin"/>\r
#Thu Jul 22 15:15:41 EEST 2010\r
eclipse.preferences.version=1\r
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled\r
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6\r
-org.eclipse.jdt.core.compiler.compliance=1.6\r
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7\r
+org.eclipse.jdt.core.compiler.compliance=1.7\r
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error\r
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error\r
-org.eclipse.jdt.core.compiler.source=1.6\r
+org.eclipse.jdt.core.compiler.source=1.7\r
org.simantics.silk.ontology;bundle-version="1.0.0",
org.simantics.spreadsheet.ontology;bundle-version="1.1.0",
org.simantics.workbench.ontology;bundle-version="1.2.0"
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Export-Package: org.simantics.sysdyn
Bundle-Vendor: VTT Technical Reserarch Centre of Finland
<?xml version="1.0" encoding="UTF-8"?>\r
<classpath>\r
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>\r
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>\r
<classpathentry kind="src" path="src"/>\r
<classpathentry kind="output" path="bin"/>\r
<?xml version="1.0" encoding="UTF-8"?>\r
<projectDescription>\r
<name>org.simantics.sysdyn.ui</name>\r
- <comment></comment>\r
+ <comment>JavaCC Nature</comment>\r
<projects>\r
</projects>\r
<buildSpec>\r
+ <buildCommand>\r
+ <name>sf.eclipse.javacc.javaccbuilder</name>\r
+ <arguments>\r
+ </arguments>\r
+ </buildCommand>\r
<buildCommand>\r
<name>org.eclipse.jdt.core.javabuilder</name>\r
<arguments>\r
<natures>\r
<nature>org.eclipse.pde.PluginNature</nature>\r
<nature>org.eclipse.jdt.core.javanature</nature>\r
+ <nature>sf.eclipse.javacc.javaccnature</nature>\r
</natures>\r
</projectDescription>\r
eclipse.preferences.version=1\r
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled\r
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6\r
-org.eclipse.jdt.core.compiler.compliance=1.6\r
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7\r
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve\r
+org.eclipse.jdt.core.compiler.compliance=1.7\r
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate\r
+org.eclipse.jdt.core.compiler.debug.localVariable=generate\r
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate\r
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error\r
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error\r
-org.eclipse.jdt.core.compiler.source=1.6\r
+org.eclipse.jdt.core.compiler.source=1.7\r
Bundle-ManifestVersion: 2
Bundle-Name: Simantics System Dynamics UI
Bundle-SymbolicName: org.simantics.sysdyn.ui;singleton:=true
-Bundle-Version: 1.8.0.qualifier
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Version: 1.9.0.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Require-Bundle: org.simantics.layer0.utils;bundle-version="0.6.2",
org.simantics.scenegraph;bundle-version="0.9.0",
org.junit4;bundle-version="4.5.0";resolution:=optional,
about.text = Simantics System Dynamics\n\\r
\n\\r
-Version 1.8.3\n\\r
+Version 1.9\n\\r
\n\\r
Copyright (c) 2014 Association for Decentralized Information Management in Industry THTH ry.\n\\r
\n\\r
org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP = false\r
org.eclipse.ui/DOCK_PERSPECTIVE_BAR=right\r
\r
-org.simantics.sysdyn.solver.preferences/SOLVER_TYPE=OPENMODELICA
\ No newline at end of file
+org.simantics.sysdyn.solver.preferences/SOLVER_TYPE=INTERNAL
\ No newline at end of file
/*******************************************************************************\r
- * Copyright (c) 2013 Association for Decentralized Information Management in\r
+ * Copyright (c) 2013, 2015 Association for Decentralized Information Management in\r
* Industry THTH ry.\r
* All rights reserved. This program and the accompanying materials\r
* are made available under the terms of the Eclipse Public License v1.0\r
}\r
\r
private void updatePath(String newValue) {\r
- if((installed != null && newValue.equals(installed.getAbsolutePath()) || newValue.equals(builtIn.getAbsolutePath()))) {\r
+ if((installed != null && newValue.equals(installed.getAbsolutePath())) || (builtIn != null && newValue.equals(builtIn.getAbsolutePath()))) {\r
path.setStringValue(newValue);\r
path.setEnabled(false, getFieldEditorParent());\r
} else {\r
<?xml version="1.0" encoding="UTF-8"?>\r
<?pde version="3.5"?>\r
\r
-<product name="Simantics System Dynamic Tool" uid="org.simantics.sysdyn.product.Sysdyn" id="org.simantics.sysdyn.ui.product" application="org.simantics.workbench.application" version="1.8.3" useFeatures="true" includeLaunchers="true">\r
+<product name="Simantics System Dynamic Tool" uid="org.simantics.sysdyn.product.Sysdyn" id="org.simantics.sysdyn.ui.product" application="org.simantics.workbench.application" version="1.9" useFeatures="true" includeLaunchers="true">\r
\r
<aboutInfo>\r
<image path="/org.simantics.sysdyn.ui/icons/simantics_sysdyn128.png"/>\r
</plugins>\r
\r
<features>\r
- <feature id="org.simantics.sysdyn" version="1.8.0.qualifier"/>\r
+ <feature id="org.simantics.sysdyn" version="1.9.0.qualifier"/>\r
</features>\r
\r
\r
<?xml version="1.0" encoding="UTF-8"?>\r
<classpath>\r
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>\r
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>\r
<classpathentry kind="src" path="src"/>\r
<classpathentry kind="output" path="bin"/>\r
#Mon Nov 16 15:37:44 EET 2009\r
eclipse.preferences.version=1\r
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled\r
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6\r
-org.eclipse.jdt.core.compiler.compliance=1.6\r
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7\r
+org.eclipse.jdt.core.compiler.compliance=1.7\r
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error\r
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error\r
-org.eclipse.jdt.core.compiler.source=1.6\r
+org.eclipse.jdt.core.compiler.source=1.7\r
Bundle-ManifestVersion: 2
Bundle-Name: Simantics System Dynamics
Bundle-SymbolicName: org.simantics.sysdyn;singleton:=true
-Bundle-Version: 1.8.0.qualifier
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Version: 1.9.0.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Require-Bundle: org.simantics.objmap;bundle-version="0.1.0",
org.simantics.db;bundle-version="0.6.2",
org.simantics.modelica;bundle-version="1.0.0",
/*******************************************************************************\r
- * Copyright (c) 2007, 2012 Association for Decentralized Information Management in\r
+ * Copyright (c) 2007, 2012, 2015 Association for Decentralized Information Management in\r
* Industry THTH ry.\r
* All rights reserved. This program and the accompanying materials\r
* are made available under the terms of the Eclipse Public License v1.0\r
if(simulationLocation != null && !canceled) {\r
// Load fmu and initialize it for simulation\r
try {\r
- if (false && !fortranLibrariesLoaded) { // Enable this when we update from OpenModelica 1.9.0beta4!\r
+ if (!fortranLibrariesLoaded) { // Enable this when we update from OpenModelica 1.9.0beta4!\r
File omDir = ModelicaManager.getOMHome();\r
File mingw = new File(omDir, "MinGW");\r
File mbin = new File(mingw, "bin");\r
if (type == null) {\r
// solver type is not set, should not happen since the default \r
// value should be in plugin_customization.ini\r
- return SolverType.OPENMODELICA;\r
+ return SolverType.INTERNAL;\r
}\r
if (SOLVER_TYPE_INTERNAL.equals(type)) {\r
return SolverType.INTERNAL;\r