public class SynchronizedResourceSet extends ResourceSetImpl implements DisposableResourceSet
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(IProxyCreationListener proxyListener)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Resource |
createResource(URI uri) |
Resource |
createResource(URI uri,
String contentType) |
void |
dispose()
This method should be called when the resource set is no longer needed.
|
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,
org.eclipse.core.runtime.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
getAdapterFactories, getAllContents, getEObject, getPackageRegistry, getResourceFactoryRegistry, getURIConverter, setPackageRegistry, setResourceFactoryRegistry, setURIConverter
eAdapters, eDeliver, eNotify, eSetDeliver
public SynchronizedResourceSet(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, org.eclipse.core.runtime.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()
public void dispose()
dispose
in interface DisposableResourceSet
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.