From: kalajainen Date: Wed, 11 Aug 2010 10:49:36 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17107 ac1ea38d-2e2b... X-Git-Tag: simantics-1.2.0~117 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=01a95bcba9d825324534b43b41f841e9f872b3e7;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17107 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java index 5fe9a53a..c30b04aa 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java @@ -101,9 +101,8 @@ public class SysdynProjectLifeCycle implements IProjectLifeCycle{ VirtualGraphSupport support = session.getService(VirtualGraphSupport.class); final VirtualGraph graph = session.getService(VirtualGraph.class); - - - session.asyncRequest(new ObjectsWithType(projectResource, b.ConsistsOf, b.Model), new SingleSetListener() { + + processor.asyncRequest(new ObjectsWithType(projectResource, b.ConsistsOf, b.Model), new SingleSetListener() { @Override public void add(final Resource model) { @@ -146,7 +145,7 @@ public class SysdynProjectLifeCycle implements IProjectLifeCycle{ } - cleanProjectFolder(project.get()); + cleanProjectFolder(processor, project.get()); context.setHint(INITIALIZED, Boolean.TRUE); @@ -174,13 +173,13 @@ public class SysdynProjectLifeCycle implements IProjectLifeCycle{ public void onDeactivated(IProject project) { } - public void cleanProjectFolder(final Resource projectResource) { + public void cleanProjectFolder(RequestProcessor processor, final Resource projectResource) { ISessionContext context = SimanticsUI.getSessionContext(); final Session session = context.getSession(); String projectName = null; final HashMap resultPaths = new HashMap(); try { - projectName = session.syncRequest(new Read() { + projectName = processor.syncRequest(new Read() { @Override public String perform(ReadGraph graph) throws DatabaseException {