<?xml version="1.0" encoding="UTF-8"?>\r
<feature\r
id="org.simantics.sysdyn.internal.p2"\r
- label="Simantics System Dynamics with Internal Solver P2 Site"\r
+ label="Simantics System Dynamics with Internal Solver"\r
version="1.9.1.qualifier"\r
provider-name="Semantum Oy">\r
\r
- <description url="http://www.example.com/description">\r
- Simantics System Dynamics feature with custom internal solver only.\r
+ <description>\r
+ Simantics System Dynamics feature with custom internal solver only.
This feature can be installed into the generic Simantics Desktop product.\r
</description>\r
\r
<copyright>\r
- Copyright (c) 2016 Association for Decentralized Information\r
-Management in Industry THTH ry.<br/>\r
-All rights reserved. This program and the accompanying materials\r
-are made available under the terms of the Eclipse Public License\r
-v1.0 which accompanies this distribution, and is available at\r
+ Copyright (c) 2016 Association for Decentralized Information
+Management in Industry THTH ry.<br/>
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Eclipse Public License
+v1.0 which accompanies this distribution, and is available at
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>\r
</copyright>\r
\r
version="0.0.0"/>\r
\r
<includes\r
- id="org.simantics.sysdyn.internal.p2"\r
+ id="org.simantics.sysdyn.internal.p2.site"\r
version="0.0.0"/>\r
\r
</feature>\r
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
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,
+ org.junit;bundle-version="4.12.0";resolution:=optional,
org.simantics.ui;bundle-version="1.0.0",
org.eclipse.ui;bundle-version="3.5.0",
org.eclipse.core.runtime;bundle-version="3.5.0",
locationURI="popup:#EnumerationTabPopup?after=wbStart">\r
\r
<command\r
- commandId="org.simantics.sysdyn.ui.renameNode1"\r
+ commandId="org.simantics.sysdyn.ui.renameNode"\r
icon="platform:/plugin/com.famfamfam.silk/icons/textfield_rename.png"\r
id="org.simantics.sysdyn.ui.browser.rename"\r
label="Rename"\r
}\r
}\r
\r
- @SuppressWarnings("rawtypes")\r
- @Override\r
- public Object getAdapter(Class adapter) {\r
+ @SuppressWarnings("unchecked")\r
+ @Override\r
+ public <T> T getAdapter(Class<T> adapter) {\r
if (adapter == Resource.class)\r
- return resource;\r
+ return (T) resource;\r
if (adapter == Variable.class)\r
- return variable;\r
+ return (T) variable;\r
if (NodeContext.class.equals(adapter))\r
- return originalInput;\r
+ return (T) originalInput;\r
if (originalInput instanceof IAdaptable) {\r
IAdaptable input = (IAdaptable)originalInput;\r
return input.getAdapter(adapter);\r
import org.simantics.db.common.request.ObjectsWithType;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.db.layer0.variable.Variable;\r
-import org.simantics.db.layer0.variable.Variables;\r
import org.simantics.layer0.Layer0;\r
import org.simantics.spreadsheet.resource.SpreadsheetResource;\r
import org.simantics.sysdyn.SysdynResource;\r
\r
ISelection sel = HandlerUtil.getCurrentSelection(event);\r
\r
- @SuppressWarnings("unchecked")\r
Resource res = AdaptionUtils.adaptToSingle(sel, Resource.class);\r
if(res == null) {\r
@SuppressWarnings("unchecked")\r