}\r
}\r
\r
+ @SuppressWarnings("unchecked")\r
@Override\r
public void setInput(ISessionContext context, Object parameter) {\r
this.context = context;\r
--- /dev/null
+importtargetdefinition -A 'http://www.simantics.org/download/head/simantics.target'\r
+import 'site.cquery'\r
+build\r
+perform -D target.os=* -D target.ws=* -D target.arch=* org.simantics.sysdyn.build#site.p2
\ No newline at end of file
id="org.simantics.sysdyn.internal.p2"\r
version="0.0.0"/>\r
\r
+ <plugin\r
+ id="org.simantics.sysdyn.product"\r
+ download-size="0"\r
+ install-size="0"\r
+ version="0.0.0"/>\r
+\r
</feature>\r
import 'site.cquery'\r
build\r
perform -D target.os=* -D target.ws=* -D target.arch=* org.simantics.sysdyn.product.site#site.p2\r
-perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86 -D p2.profileName=SysdynProfile -D p2.rootId=org.simantics.sysdyn.product.Sysdyn -D build.label=SimanticsSysdyn-b${BUILD_NUMBER}-r${SVN_REVISION} org.simantics.sysdyn.product.site#create.product.zip\r
-perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86_64 -D p2.profileName=SysdynProfile -D p2.rootId=org.simantics.sysdyn.product.Sysdyn -D build.label=SimanticsSysdyn-b${BUILD_NUMBER}-r${SVN_REVISION} org.simantics.sysdyn.product.site#create.product.zip\r
+perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86 -D p2.profileName=SysdynProfile -D p2.rootId=org.simantics.sysdyn.product.Sysdyn -D build.label=Sysdyn-b${BUILD_NUMBER} org.simantics.sysdyn.product.site#create.product.zip\r
+perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86_64 -D p2.profileName=SysdynProfile -D p2.rootId=org.simantics.sysdyn.product.Sysdyn -D build.label=Sysdyn-b${BUILD_NUMBER} org.simantics.sysdyn.product.site#create.product.zip\r
+perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86 -D p2.profileName=SysdynProfile -D p2.rootId=org.simantics.sysdyn.product.SysdynWithOpenModelica -D build.label=Sysdyn-with-om-b${BUILD_NUMBER} org.simantics.sysdyn.product.site#create.product.zip\r
+perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86_64 -D p2.profileName=SysdynProfile -D p2.rootId=org.simantics.sysdyn.product.SysdynWithOpenModelica -D build.label=Sysdyn-with-om-b${BUILD_NUMBER} org.simantics.sysdyn.product.site#create.product.zip
\ No newline at end of file
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Sysdyn Product
-Bundle-SymbolicName: org.simantics.sysdyn.product
+Bundle-SymbolicName: org.simantics.sysdyn.product;singleton:=true
Bundle-Version: 1.9.1.qualifier
Bundle-Vendor: Semantum Oy
+Bundle-Localization: plugin
bin.includes = META-INF/,\\r
splash.bmp,\\r
- plugin.properties\r
+ plugin.properties,\\r
+ icons/,\\r
+ plugin.xml,\\r
+ plugin_customization.ini\r
--- /dev/null
+about.text = Simantics System Dynamics\n\\r
+\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
+Contributors:\n\\r
+VTT Technical Research Centre of Finland\n\\r
+Semantum Oy
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<?eclipse version="3.4"?>\r
+<!--\r
+ Copyright (c) 2016 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
+ which accompanies this distribution, and is available at\r
+ http://www.eclipse.org/legal/epl-v10.html\r
+ \r
+ Contributors:\r
+ VTT Technical Research Centre of Finland - initial API and implementation\r
+ Semantum Oy - products in separate plugin for headless builds\r
+ -->\r
+\r
+<plugin>\r
+ <extension\r
+ id="product"\r
+ point="org.eclipse.core.runtime.products">\r
+ <product\r
+ application="org.simantics.workbench.application"\r
+ description="Simantics System Dynamic Modelling Environment"\r
+ name="Simantics System Dynamic Tool">\r
+ <property\r
+ name="appName"\r
+ value="Simantics System Dynamic Tool">\r
+ </property>\r
+ <property\r
+ name="windowImages"\r
+ value="icons/simantics_sysdyn16.png,icons/simantics_sysdyn32.png,icons/simantics_sysdyn48.png,icons/simantics_sysdyn64.png,icons/simantics_sysdyn128.png">\r
+ </property>\r
+ <property\r
+ name="aboutText"\r
+ value="%about.text">\r
+ </property>\r
+ <property\r
+ name="aboutImage"\r
+ value="icons/simantics_sysdyn128.png">\r
+ </property>\r
+ </product>\r
+ </extension>\r
+</plugin>\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.SysdynWithOpenModelica" id="org.simantics.sysdyn.ui.product" application="org.simantics.workbench.application" version="1.9.1" useFeatures="true" includeLaunchers="true">\r
+<product name="Simantics System Dynamic Tool" uid="org.simantics.sysdyn.product.SysdynWithOpenModelica" id="org.simantics.sysdyn.product.product" application="org.simantics.workbench.application" version="1.9.1" useFeatures="true" includeLaunchers="true">\r
\r
<aboutInfo>\r
- <image path="/org.simantics.sysdyn.ui/icons/simantics_sysdyn128.png"/>\r
+ <image path="/org.simantics.sysdyn.product/icons/simantics_sysdyn128.png"/>\r
<text>\r
%about.text\r
</text>\r
</vmArgsWin>\r
</launcherArgs>\r
\r
- <windowImages i16="/org.simantics.sysdyn.ui/icons/simantics_sysdyn16.png" i32="/org.simantics.sysdyn.ui/icons/simantics_sysdyn32.png" i48="/org.simantics.sysdyn.ui/icons/simantics_sysdyn48.png" i64="/org.simantics.sysdyn.ui/icons/simantics_sysdyn64.png" i128="/org.simantics.sysdyn.ui/icons/simantics_sysdyn128.png"/>\r
+ <windowImages i16="/org.simantics.sysdyn.product/icons/simantics_sysdyn16.png" i32="/org.simantics.sysdyn.product/icons/simantics_sysdyn32.png" i48="/org.simantics.sysdyn.product/icons/simantics_sysdyn48.png" i64="/org.simantics.sysdyn.product/icons/simantics_sysdyn64.png" i128="/org.simantics.sysdyn.product/icons/simantics_sysdyn128.png"/>\r
\r
<splash\r
- location="org.simantics.sysdyn.ui" />\r
+ location="org.simantics.sysdyn.product" />\r
<launcher name="Simantics-Sysdyn">\r
<solaris/>\r
- <win useIco="false">\r
+ <win useIco="true">\r
+ <ico path="/org.simantics.sysdyn.product/icons/sysdyn.ico"/>\r
<bmp/>\r
</win>\r
</launcher>\r
\r
+\r
<vm>\r
- <windows include="true">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7</windows>\r
+ <windows include="true">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</windows>\r
</vm>\r
\r
<license>\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.9.1" useFeatures="true" includeLaunchers="true">\r
+<product name="Simantics System Dynamic Tool" uid="org.simantics.sysdyn.product.Sysdyn" id="org.simantics.sysdyn.product.product" application="org.simantics.workbench.application" version="1.9.1" useFeatures="true" includeLaunchers="true">\r
\r
<aboutInfo>\r
- <image path="/org.simantics.sysdyn.ui/icons/simantics_sysdyn128.png"/>\r
+ <image path="/org.simantics.sysdyn.product/icons/simantics_sysdyn128.png"/>\r
<text>\r
%about.text\r
</text>\r
</vmArgsWin>\r
</launcherArgs>\r
\r
- <windowImages i16="/org.simantics.sysdyn.ui/icons/simantics_sysdyn16.png" i32="/org.simantics.sysdyn.ui/icons/simantics_sysdyn32.png" i48="/org.simantics.sysdyn.ui/icons/simantics_sysdyn48.png" i64="/org.simantics.sysdyn.ui/icons/simantics_sysdyn64.png" i128="/org.simantics.sysdyn.ui/icons/simantics_sysdyn128.png"/>\r
+ <windowImages i16="/org.simantics.sysdyn.product/icons/simantics_sysdyn16.png" i32="/org.simantics.sysdyn.product/icons/simantics_sysdyn32.png" i48="/org.simantics.sysdyn.product/icons/simantics_sysdyn48.png" i64="/org.simantics.sysdyn.product/icons/simantics_sysdyn64.png" i128="/org.simantics.sysdyn.product/icons/simantics_sysdyn128.png"/>\r
\r
<splash\r
- location="org.simantics.sysdyn.ui" />\r
+ location="org.simantics.sysdyn.product" />\r
<launcher name="Simantics-Sysdyn">\r
<solaris/>\r
- <win useIco="false">\r
+ <win useIco="true">\r
+ <ico path="/org.simantics.sysdyn.product/icons/sysdyn.ico"/>\r
<bmp/>\r
</win>\r
</launcher>\r
\r
+\r
<vm>\r
- <windows include="true">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7</windows>\r
+ <windows include="true">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</windows>\r
</vm>\r
\r
<license>\r
.,\\r
plugin.xml,\\r
adapters.xml,\\r
- icons/,\\r
- splash.bmp,\\r
plugin.properties,\\r
- plugin_customization.ini\r
+ icons/\r
-about.text = Simantics System Dynamics\n\\r
-\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
-Contributors:\n\\r
-VTT Technical Research Centre of Finland\n\\r
-Semantum Oy
\ No newline at end of file
type="org.eclipse.jface.viewers.IStructuredSelection">\r
</propertyTester>\r
</extension>\r
- <extension\r
- id="product"\r
- point="org.eclipse.core.runtime.products">\r
- <product\r
- application="org.simantics.workbench.application"\r
- description="Simantics System Dynamic Modelling Environment"\r
- name="Simantics System Dynamic Tool">\r
- <property\r
- name="appName"\r
- value="Simantics System Dynamic Tool">\r
- </property>\r
- <property\r
- name="windowImages"\r
- value="icons/simantics_sysdyn16.png,icons/simantics_sysdyn32.png,icons/simantics_sysdyn48.png,icons/simantics_sysdyn64.png,icons/simantics_sysdyn128.png">\r
- </property>\r
- <property\r
- name="aboutText"\r
- value="%about.text">\r
- </property>\r
- <property\r
- name="aboutImage"\r
- value="icons/simantics_sysdyn128.png">\r
- </property>\r
- </product>\r
- </extension>\r
<extension\r
point="org.simantics.browsing.ui.common.viewpointContributionBinding">\r
<binding\r
import org.eclipse.jface.viewers.ISelection;\r
import org.eclipse.swt.widgets.Composite;\r
import org.eclipse.swt.widgets.Control;\r
-import org.eclipse.ui.IEditorPart;\r
import org.eclipse.ui.IWorkbenchPart;\r
-import org.eclipse.ui.IWorkbenchSite;\r
import org.eclipse.ui.handlers.HandlerUtil;\r
import org.eclipse.ui.part.IPage;\r
-import org.eclipse.ui.part.IPageSite;\r
-import org.simantics.browsing.ui.GraphExplorer;\r
import org.simantics.browsing.ui.NodeContext;\r
import org.simantics.browsing.ui.common.ColumnKeys;\r
import org.simantics.browsing.ui.platform.PropertyPageView;\r
import org.simantics.browsing.ui.swt.widgets.GraphExplorerComposite;\r
-import org.simantics.sysdyn.ui.properties.SysdynPropertyPage;\r
import org.simantics.utils.ui.ISelectionUtils;\r
\r
public class EnumerationIndexRenameNodeHandler extends AbstractHandler {\r
import org.eclipse.swt.widgets.Shell;\r
import org.eclipse.ui.handlers.HandlerUtil;\r
import org.simantics.DatabaseJob;\r
-import org.simantics.db.common.utils.Logger;\r
-import org.simantics.graph.db.MissingDependencyException;\r
import org.simantics.modeling.ModelingUtils;\r
import org.simantics.sysdyn.ui.Activator;\r
import org.simantics.sysdyn.ui.utils.imports.ImportUtilsUI;\r
return false;\r
if (getClass() != obj.getClass())\r
return false;\r
- IndexVariable other = (IndexVariable) obj;\r
+ IndexVariable<?> other = (IndexVariable<?>) obj;\r
if (indexes == null) {\r
if (other.indexes != null)\r
return false;\r
package org.simantics.sysdyn.adapter;\r
\r
-import java.util.ArrayList;\r
import java.util.List;\r
\r
import org.simantics.db.ReadGraph;\r
\r
TimeLogger.resetTime();\r
\r
- long start = System.nanoTime();\r
+// long start = System.nanoTime();\r
\r
if(asJob) base.changeState(ExperimentState.RUNNING);\r
\r
System.err.println("SysdynGameExperiment simulateDuration failed: \n\t" + e.getMessage());\r
}\r
\r
- long end = System.nanoTime();\r
+// long end = System.nanoTime();\r
// System.err.println("simulate duration took " + 1e-6*(end-start) + "ms.");\r
\r
TimeLogger.log("SimulateDuration");\r
*******************************************************************************/\r
package org.simantics.sysdyn.manager;\r
\r
-import gnu.trove.list.array.TDoubleArrayList;\r
-import gnu.trove.map.hash.THashMap;\r
-\r
import java.util.Collection;\r
import java.util.HashMap;\r
\r
import org.eclipse.core.runtime.IProgressMonitor;\r
import org.eclipse.core.runtime.NullProgressMonitor;\r
-import org.eclipse.core.runtime.jobs.Job;\r
import org.simantics.db.AsyncReadGraph;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.sysdyn.solver.ISolver;\r
import org.simantics.utils.datastructures.Quad;\r
\r
+import gnu.trove.list.array.TDoubleArrayList;\r
+\r
/**\r
* Game experiment\r
* @author Teemu Lempinen\r
*******************************************************************************/\r
package org.simantics.sysdyn.manager;\r
\r
-import gnu.trove.list.array.TDoubleArrayList;\r
-import gnu.trove.map.hash.THashMap;\r
-\r
import java.io.IOException;\r
import java.util.HashMap;\r
\r
import org.simantics.sysdyn.solver.ISolverMonitor;\r
import org.simantics.sysdyn.solver.InternalSolver;\r
\r
+import gnu.trove.list.array.TDoubleArrayList;\r
+\r
\r
public class SysdynGameExperimentInternal extends SysdynGameExperimentBase {\r
\r