Package org.eclipse.emf.ecore.resource

Examples of org.eclipse.emf.ecore.resource.Resource.unload()


      stopResourceListening();
      getResourceSet().eAdapters().remove(myResourceSetListener);
      for (Iterator<Resource> it = getLoadedResourcesIterator(); it
          .hasNext();) {
        Resource resource = it.next();
        resource.unload();
      }
      getEditingDomain().dispose();
    }

    /**
 
View Full Code Here


                GMFResourceFactory.getDefaultLoadOptions());
            // @see 171060
            // options.put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
            resource.load(options);
          } catch (IOException e) {
            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
View Full Code Here

            new Status(
                IStatus.ERROR,
                es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.JadexAgentsDiagramEditorPlugin.ID,
                0, e.getLocalizedMessage(), null));
      }
      newResource.unload();
    }
  }

  /**
   * @generated
 
View Full Code Here

    public void dispose() {
      getResourceSet().eAdapters().remove(myResourceSetListener);
      for (Iterator<Resource> it = getLoadedResourcesIterator(); it
          .hasNext();) {
        Resource resource = it.next();
        resource.unload();
      }
      getEditingDomain().dispose();
    }

    /**
 
View Full Code Here

                GMFResourceFactory.getDefaultLoadOptions());
            // @see 171060
            // options.put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
            resource.load(options);
          } catch (IOException e) {
            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
View Full Code Here

            new Status(
                IStatus.ERROR,
                es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.JadexAgentsDiagramEditorPlugin.ID,
                0, e.getLocalizedMessage(), null));
      }
      newResource.unload();
    }
  }

  /**
   * @generated
 
View Full Code Here

      stopResourceListening();
      getResourceSet().eAdapters().remove(myResourceSetListener);
      for (Iterator<Resource> it = getLoadedResourcesIterator(); it
          .hasNext();) {
        Resource resource = it.next();
        resource.unload();
      }
      getEditingDomain().dispose();
    }

    /**
 
View Full Code Here

                GMFResourceFactory.getDefaultLoadOptions());
            // @see 171060
            // options.put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
            resource.load(options);
          } catch (IOException e) {
            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
View Full Code Here

            new Status(
                IStatus.ERROR,
                es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.JadexAgentsDiagramEditorPlugin.ID,
                0, e.getLocalizedMessage(), null));
      }
      newResource.unload();
    }
  }

  /**
   * @generated
 
View Full Code Here

      stopResourceListening();
      getResourceSet().eAdapters().remove(myResourceSetListener);
      for (Iterator<Resource> it = getLoadedResourcesIterator(); it
          .hasNext();) {
        Resource resource = it.next();
        resource.unload();
      }
      getEditingDomain().dispose();
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.