public class SynchronizedXtextResourceSet extends XtextResourceSet implements ISynchronizable<SynchronizedXtextResourceSet>
XtextResourceSet.ResourcesList, XtextResourceSet.UriChangeListener
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.MappedResourceLocator, org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.ResourceLocator, org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.ResourcesEList<E extends java.lang.Object & org.eclipse.emf.ecore.resource.Resource>
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
adapterFactories, loadOptions, packageRegistry, resourceFactoryRegistry, resourceLocator, resources, uriConverter, uriResourceMap
Constructor and Description |
---|
SynchronizedXtextResourceSet() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.common.util.URI uri) |
protected XtextResourceSet.ResourcesList |
createResourceList()
Create the concrete list that will contain the resources.
|
<Result> Result |
execute(IUnitOfWork<Result,? super SynchronizedXtextResourceSet> unit)
Execute the unit of work in a context that allows for modification.
|
java.lang.Object |
getLock()
Returns a synchronization lock that works for the complete resource set.
|
org.eclipse.emf.ecore.resource.Resource |
getResource(org.eclipse.emf.common.util.URI uri,
boolean loadOnDemand) |
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource> |
getResources() |
addLoadOption, addTimeout, getClasspathURIContext, getClasspathUriResolver, getUriChangeListener, getURIConverter, initializeDefaultLoadOptions, registerURI, removeLoadOption, setClasspathURIContext, setClasspathUriResolver
createResource, delegatedGetResource, demandCreateResource, demandLoad, demandLoadHelper, getAdapterFactories, getAllContents, getEObject, getLoadOptions, getPackageRegistry, getResourceFactoryRegistry, getURIResourceMap, handleDemandLoadException, setPackageRegistry, setResourceFactoryRegistry, setURIConverter, setURIResourceMap, toString
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
public org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri, boolean loadOnDemand)
getResource
in interface org.eclipse.emf.ecore.resource.ResourceSet
getResource
in class XtextResourceSet
public org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri)
createResource
in interface org.eclipse.emf.ecore.resource.ResourceSet
createResource
in class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource> getResources()
getResources
in interface org.eclipse.emf.ecore.resource.ResourceSet
getResources
in class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
public java.lang.Object getLock()
getLock
in interface ISynchronizable<SynchronizedXtextResourceSet>
public <Result> Result execute(IUnitOfWork<Result,? super SynchronizedXtextResourceSet> unit) throws java.lang.Exception
execute
in interface ISynchronizable<SynchronizedXtextResourceSet>
unit
- the action to perform. May not be null
java.lang.Exception
- the exception that was thrown by the unit.protected XtextResourceSet.ResourcesList createResourceList()
XtextResourceSet
createResourceList
in class XtextResourceSet