public class SynchronizedResourceSet extends ResourceSetImpl
loadResource(URI)
.ResourceSetImpl.MappedResourceLocator, ResourceSetImpl.ResourceLocator, ResourceSetImpl.ResourcesEList<E extends Object & Resource>
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
adapterFactories, loadOptions, packageRegistry, resourceFactoryRegistry, resourceLocator, resources, uriConverter, uriResourceMap
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
RESOURCE_SET__RESOURCES
Constructor and Description |
---|
SynchronizedResourceSet(ProxyNotifierParserPool.IProxyCreationListener proxyListener)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Resource |
createResource(URI uri) |
Resource |
createResource(URI uri,
String contentType) |
Map<Object,Object> |
getLoadOptions() |
Resource |
getResource(URI uri,
boolean loadOnDemand) |
EList<Resource> |
getResources() |
protected void |
handleDemandLoadException(Resource resource,
IOException exception) |
Resource |
loadResource(URI uri)
This will load the given URI as an EMF Resource.
|
void |
unload(Resource resource,
IProgressMonitor monitor)
Unload the given resource.
|
delegatedGetResource, demandCreateResource, demandLoad, demandLoadHelper, getAdapterFactories, getAllContents, getEObject, getPackageRegistry, getResourceFactoryRegistry, getURIConverter, getURIResourceMap, setPackageRegistry, setResourceFactoryRegistry, setURIConverter, setURIResourceMap, toString
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eAdapters, eDeliver, eNotify, eSetDeliver
public SynchronizedResourceSet(ProxyNotifierParserPool.IProxyCreationListener proxyListener)
proxyListener
- The listener to notify of proxy creations.public Resource loadResource(URI uri)
This is the only entry point within this resource set to load an EMF resource, and it will _only_ load
the resource pointed at by uri
, ignoring all cross-referenced resources (including
containment proxies).
uri
- The URI to load as a resource.protected void handleDemandLoadException(Resource resource, IOException exception)
public void unload(Resource resource, IProgressMonitor monitor)
resource
- Resource to unlodmonitor
- Progress monito to use (currently unused)public Resource getResource(URI uri, boolean loadOnDemand)
getResource
in interface ResourceSet
getResource
in class ResourceSetImpl
ResourceSetImpl.getResource(org.eclipse.emf.common.util.URI,
boolean)
public Resource createResource(URI uri)
createResource
in interface ResourceSet
createResource
in class ResourceSetImpl
ResourceSetImpl.createResource(org.eclipse.emf.common.util.URI)
public Resource createResource(URI uri, String contentType)
createResource
in interface ResourceSet
createResource
in class ResourceSetImpl
ResourceSetImpl.createResource(org.eclipse.emf.common.util.URI,
java.lang.String)
public EList<Resource> getResources()
getResources
in interface ResourceSet
getResources
in class ResourceSetImpl
ResourceSetImpl.getResources()
public Map<Object,Object> getLoadOptions()
getLoadOptions
in interface ResourceSet
getLoadOptions
in class ResourceSetImpl
ResourceSetImpl.getLoadOptions()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.