Changed Sysdyn sample model file extensions (refs #4737).
Changed Sysdyn version to 1.8.
Allow double click to expand Sysdyn model in model browser (refs #4742).
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29021
ac1ea38d-2e2b-0410-8846-
a27921b304fc
<feature\r
id="org.simantics.sysdyn"\r
label="Simantics System Dynamics Feature"\r
- version="1.7.0.qualifier"\r
+ version="1.8.0.qualifier"\r
provider-name="VTT Technical Research Centre of Finland">\r
\r
<description url="http://www.example.com/description">\r
Bundle-ManifestVersion: 2
Bundle-Name: Simantics System Dynamics UI
Bundle-SymbolicName: org.simantics.sysdyn.ui;singleton:=true
-Bundle-Version: 1.7.0.qualifier
+Bundle-Version: 1.8.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.simantics.layer0.utils;bundle-version="0.6.2",
org.simantics.scenegraph;bundle-version="0.9.0",
\r
@Override\r
public boolean handleDoubleClick() {\r
- return true;\r
+ return false;\r
}\r
\r
}\r
}\r
\r
public static Arc2D createArc(Arc2D arc, Shape beginBounds, Shape endBounds, double angle) {\r
+ if (beginBounds == null || endBounds == null)\r
+ return new Arc2D.Double();\r
double x0 = beginBounds.getBounds2D().getCenterX();\r
double y0 = beginBounds.getBounds2D().getCenterY();\r
double x1 = endBounds.getBounds2D().getCenterX();\r
@Override\r
public void textEditingStarted() {\r
TextNode node = (TextNode) e.getHint(SG_NODE);\r
+ if (node == null)\r
+ return;\r
textBeforeEdit = node.getText();\r
\r
if(component != null) return;\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.7" useFeatures="true" includeLaunchers="false">\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" useFeatures="true" includeLaunchers="false">\r
\r
<aboutInfo>\r
<text>\r
</configIni>\r
\r
<launcherArgs>\r
- <programArgs>-fixerrors\r
---launcher.XXMaxPermSize 192m\r
+ <programArgs>-fixerrors
+--launcher.XXMaxPermSize 192m
-data @noDefault</programArgs>\r
<vmArgs>-ea -Xmx768M -XX:MaxPermSize=192m -Xshare:off -Dorg.simantics.undo.enabled=false</vmArgs>\r
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>\r
+ <vmArgsWin>-Dorg.osgi.framework.os.name=win32</vmArgsWin>\r
</launcherArgs>\r
\r
<windowImages i16="/org.simantics.sysdyn.ui/icons/sysdyn.png"/>\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.6</windows>\r
</vm>\r
</plugins>\r
\r
<features>\r
- <feature id="org.simantics.sysdyn" version="1.7.0.qualifier"/>\r
+ <feature id="org.simantics.sysdyn" version="1.8.0.qualifier"/>\r
</features>\r
\r
\r
Bundle-ManifestVersion: 2
Bundle-Name: Simantics System Dynamics
Bundle-SymbolicName: org.simantics.sysdyn;singleton:=true
-Bundle-Version: 1.7.0.qualifier
+Bundle-Version: 1.8.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.simantics.objmap;bundle-version="0.1.0",
org.simantics.db;bundle-version="0.6.2",
if(e instanceof Variable) {\r
Variable var = (Variable)e;\r
try {\r
- if(var.getName().equals(element))\r
+ if (element.equals(var.getName()))\r
return var;\r
} catch (NullPointerException npe) {\r
npe.printStackTrace();\r