Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EPackage.eResource()


    EList resources = result.getResources();
    for (Iterator iter = targetNamespaceToEPackageMap.entrySet().iterator(); iter.hasNext();) {
      Map.Entry mapEntry = (Map.Entry)iter.next();
      EPackage ePackage = (EPackage)mapEntry.getValue();
      Resource resource = ePackage.eResource();
      if (resource != null) {
        resources.add(resource);
      }
    }
    return result;
View Full Code Here


        ResourceSet resourceSet = ((DataGraphImpl)dataGraph).getResourceSet();

        for (Iterator iterator = packages.iterator(); iterator.hasNext();) {
            EPackage typePackage = (EPackage)iterator.next();
            Resource resource = typePackage.eResource();
            if (resource == null) {
                resource = resourceSet.createResource(URI.createURI(".ecore"));
                resource.setURI(URI.createURI(typePackage.getNsURI()));
                resource.getContents().add(typePackage);
            } else if (resource.getResourceSet() != resourceSet)
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.