public final class ResourceSetHelpers extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addResourceToSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.common.util.URI resourceURI)
Loads a resource from resourceURI and adds it to the resourceSet.
|
static <T> List<T> |
findAllOf(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
Class<T> clazz,
boolean includeEcorePackage)
Find all of type in the ResourceSet.
|
static <T> List<T> |
findAllOfTypeInResourceSet(org.eclipse.emf.ecore.EObject object,
Class<T> clazz,
boolean includeEcorePackage)
Find all of type in resource set.
|
static List<?> |
findAllOfTypeInResourceSet(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EClassifier type,
boolean includeEcorePackage)
Find all of type in resource set.
|
static org.eclipse.emf.ecore.resource.ResourceSet |
loadResourceSetWithProxies(org.eclipse.emf.common.util.URI resourceURI,
org.eclipse.emf.common.command.BasicCommandStack commandStack)
Load resource set with proxies.
|
static boolean |
save(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Save all changes in a ResourceSet.
|
public static boolean save(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resourceSet - the resource setpublic static org.eclipse.emf.ecore.resource.ResourceSet loadResourceSetWithProxies(org.eclipse.emf.common.util.URI resourceURI,
org.eclipse.emf.common.command.BasicCommandStack commandStack)
resourceURI - the resource uri (= File to load)commandStack - the command stackpublic static boolean addResourceToSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.common.util.URI resourceURI)
resourceSet - the resource setresourceURI - the resource uripublic static List<?> findAllOfTypeInResourceSet(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EClassifier type, boolean includeEcorePackage)
object - the objecttype - the typeincludeEcorePackage - the include ecore packagepublic static <T> List<T> findAllOfTypeInResourceSet(org.eclipse.emf.ecore.EObject object, Class<T> clazz, boolean includeEcorePackage)
T - the generic typeobject - the objectclazz - the clazzincludeEcorePackage - the include ecore packagepublic static <T> List<T> findAllOf(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, Class<T> clazz, boolean includeEcorePackage)
T - the generic typeresourceSet - the resource setclazz - the clazzincludeEcorePackage - the include ecore packageCopyright © 2016. All rights reserved.