import org.simantics.db.Resource;\r
import org.simantics.db.Session;\r
import org.simantics.db.WriteGraph;\r
-import org.simantics.db.common.uri.URIToResource;\r
+import org.simantics.db.common.request.Queries;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.db.service.LifecycleSupport;\r
import org.simantics.project.ProjectElementType;\r
@Override\r
public void openEditor(Session session, String uri) throws PartInitException {\r
try {\r
- Resource resource = session.syncRequest(new URIToResource(uri));\r
+ Resource resource = session.syncRequest(Queries.resource(uri));\r
session.syncRequest(new ChooseActionRequest(null, resource, WorkbenchUtils.getCurrentPerspectiveId()));\r
} catch (DatabaseException e) {\r
LifecycleSupport ls = session.getService(LifecycleSupport.class);\r