/** * Get the resource for this uri. It will use the resource set of the project to find it. It will * load if not already loaded. * * @param uri * @return resource or <code>null</code> if resource is not found. * @since 1.0.0 */ public Resource getResource(URI uri) { try { return getResourceSet().getResource(uri, true); } catch (WrappedException ex) { if (!WorkbenchResourceHelperBase.isResourceNotFound(ex)) throw ex; } return null; }