import org.simantics.Simantics;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
+import org.simantics.db.common.procedure.adapter.TransientCacheAsyncListener;\r
import org.simantics.db.common.request.UnaryRead;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.db.layer0.request.PossibleModel;\r
\r
@Override\r
public boolean canHandle(ReadGraph graph, Object input) throws DatabaseException {\r
- Collection<Runnable> rs = graph.syncRequest(new DiagramFinderRequest(input));\r
+ Collection<Runnable> rs = graph.syncRequest(new DiagramFinderRequest(input), TransientCacheAsyncListener.<Collection<Runnable>>instance());\r
return !rs.isEmpty();\r
}\r
\r
if (d == null)\r
return;\r
\r
- Collection<Runnable> rs = Simantics.getSession().syncRequest(new DiagramFinderRequest(input));\r
+ Collection<Runnable> rs = Simantics.getSession().syncRequest(new DiagramFinderRequest(input), TransientCacheAsyncListener.<Collection<Runnable>>instance());\r
for (Runnable runnable : rs) {\r
runnable.run();\r
}\r