From: lehtonen Date: Thu, 10 Feb 2011 15:08:12 +0000 (+0000) Subject: Attach only to sysdyn models. X-Git-Tag: 2011-04-05-db-merge-trunk~18 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=16a9ab98eb15fbfb986c1d606661a7b62fde1384;p=simantics%2Fsysdyn.git Attach only to sysdyn models. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19755 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java index 5fdccb70..d8db6fe4 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java @@ -221,8 +221,8 @@ public class SysdynProject extends AbstractProjectFeature { VirtualGraphSupport support = session.getService(VirtualGraphSupport.class); final VirtualGraph graph = session.getService(VirtualGraph.class); - SimulationResource SIMU = SimulationResource.getInstance(session); - session.asyncRequest(new ObjectsWithType(projectResource, l0.ConsistsOf, SIMU.Model), new SingleSetListener() { + SysdynResource SYSDYN = SysdynResource.getInstance(session); + session.asyncRequest(new ObjectsWithType(projectResource, l0.ConsistsOf, SYSDYN.SysdynModel), new SingleSetListener() { @Override public void add(final Resource model) {