]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17107 ac1ea38d-2e2b...
authorkalajainen <kalajainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 11 Aug 2010 10:49:36 +0000 (10:49 +0000)
committerkalajainen <kalajainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 11 Aug 2010 10:49:36 +0000 (10:49 +0000)
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java

index 5fe9a53af6b4b3b1a9adf589eeebfea8572265de..c30b04aa64b071a411ecb63c6f7c537d465cef27 100644 (file)
@@ -101,9 +101,8 @@ public class SysdynProjectLifeCycle implements IProjectLifeCycle{
 \r
                 VirtualGraphSupport support = session.getService(VirtualGraphSupport.class);\r
                 final VirtualGraph graph = session.getService(VirtualGraph.class);\r
-\r
-\r
-                session.asyncRequest(new ObjectsWithType(projectResource, b.ConsistsOf, b.Model), new SingleSetListener<Resource>() {\r
+                \r
+                processor.asyncRequest(new ObjectsWithType(projectResource, b.ConsistsOf, b.Model), new SingleSetListener<Resource>() {\r
 \r
                     @Override\r
                     public void add(final Resource model) {\r
@@ -146,7 +145,7 @@ public class SysdynProjectLifeCycle implements IProjectLifeCycle{
             }\r
 \r
 \r
-            cleanProjectFolder(project.get());\r
+            cleanProjectFolder(processor, project.get());\r
             context.setHint(INITIALIZED, Boolean.TRUE);\r
             \r
             \r
@@ -174,13 +173,13 @@ public class SysdynProjectLifeCycle implements IProjectLifeCycle{
     public void onDeactivated(IProject project) {\r
     }\r
 \r
-    public void cleanProjectFolder(final Resource projectResource) {\r
+    public void cleanProjectFolder(RequestProcessor processor, final Resource projectResource) {\r
         ISessionContext context = SimanticsUI.getSessionContext();\r
         final Session session = context.getSession();\r
         String projectName = null;\r
         final HashMap<String, Resource> resultPaths = new HashMap<String, Resource>();\r
         try {\r
-            projectName = session.syncRequest(new Read<String>() {\r
+            projectName = processor.syncRequest(new Read<String>() {\r
 \r
                 @Override\r
                 public String perform(ReadGraph graph) throws DatabaseException {\r