]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Attach only to sysdyn models.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 10 Feb 2011 15:08:12 +0000 (15:08 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 10 Feb 2011 15:08:12 +0000 (15:08 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19755 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java

index 5fdccb70c7619489ab96701675ce0357a08aee66..d8db6fe4b780dad89e8549d93eae8cac79cf53d7 100644 (file)
@@ -221,8 +221,8 @@ public class SysdynProject extends AbstractProjectFeature {
             VirtualGraphSupport support = session.getService(VirtualGraphSupport.class);\r
             final VirtualGraph graph = session.getService(VirtualGraph.class);\r
 \r
-            SimulationResource SIMU = SimulationResource.getInstance(session);\r
-            session.asyncRequest(new ObjectsWithType(projectResource, l0.ConsistsOf, SIMU.Model), new SingleSetListener<Resource>() {\r
+            SysdynResource SYSDYN = SysdynResource.getInstance(session);\r
+            session.asyncRequest(new ObjectsWithType(projectResource, l0.ConsistsOf, SYSDYN.SysdynModel), new SingleSetListener<Resource>() {\r
 \r
                 @Override\r
                 public void add(final Resource model) {\r