Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * Create an EMF context for the project.
  *
  * @throws CoreException
  * @since 1.0.0
  */
 protected void createEmfContext() throws CoreException {
   WorkbenchResourceHelperBase.createEMFContext(getProject(), this);
 }