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.EObservableAdapterListadapterFactories, loadOptions, packageRegistry, resourceFactoryRegistry, resourceLocator, resources, uriConverter, uriResourceMapeAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAGRESOURCE_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, toStringeAdapters, eBasicAdapters, eDeliver, eSetDelivereBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAdapterFactories, getAllContents, getEObject, getPackageRegistry, getResourceFactoryRegistry, getURIConverter, setPackageRegistry, setResourceFactoryRegistry, setURIConvertereAdapters, eDeliver, eNotify, eSetDeliverpublic 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 ResourceSetgetResource in class ResourceSetImplResourceSetImpl.getResource(org.eclipse.emf.common.util.URI,
      boolean)public Resource createResource(URI uri)
createResource in interface ResourceSetcreateResource in class ResourceSetImplResourceSetImpl.createResource(org.eclipse.emf.common.util.URI)public Resource createResource(URI uri, String contentType)
createResource in interface ResourceSetcreateResource in class ResourceSetImplResourceSetImpl.createResource(org.eclipse.emf.common.util.URI,
      java.lang.String)public EList<Resource> getResources()
getResources in interface ResourceSetgetResources in class ResourceSetImplResourceSetImpl.getResources()public Map<Object,Object> getLoadOptions()
getLoadOptions in interface ResourceSetgetLoadOptions in class ResourceSetImplResourceSetImpl.getLoadOptions()public void dispose()
dispose in interface DisposableResourceSet
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.