\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
}\r
\r
\r
- cleanProjectFolder(project.get());\r
+ cleanProjectFolder(processor, project.get());\r
context.setHint(INITIALIZED, Boolean.TRUE);\r
\r
\r
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