public class SynchronizedXtextResourceSet extends XtextResourceSet implements ISynchronizable<SynchronizedXtextResourceSet>
XtextResourceSet.ResourcesList, XtextResourceSet.UriChangeListenerorg.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.EObservableAdapterListnormalizationMapadapterFactories, 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() |
protected void |
registerURI(org.eclipse.emf.ecore.resource.Resource resource) |
addLoadOption, addTimeout, getClasspathURIContext, getClasspathUriResolver, getModificationStamp, getNormalizationMap, getUriChangeListener, getURIConverter, initializeDefaultLoadOptions, isOutdated, markOutdated, markSynced, removeLoadOption, setClasspathURIContext, setClasspathUriResolvercreateResource, delegatedGetResource, demandCreateResource, demandLoad, demandLoadHelper, getAdapterFactories, getAllContents, getEObject, getLoadOptions, getPackageRegistry, getResourceFactoryRegistry, getURIResourceMap, handleDemandLoadException, setPackageRegistry, setResourceFactoryRegistry, setURIConverter, setURIResourceMap, toStringeAdapters, eBasicAdapters, eDeliver, eSetDelivereBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifypublic org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri,
boolean loadOnDemand)
getResource in interface org.eclipse.emf.ecore.resource.ResourceSetgetResource in class XtextResourceSetpublic org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri)
createResource in interface org.eclipse.emf.ecore.resource.ResourceSetcreateResource in class org.eclipse.emf.ecore.resource.impl.ResourceSetImplpublic org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource> getResources()
getResources in interface org.eclipse.emf.ecore.resource.ResourceSetgetResources in class org.eclipse.emf.ecore.resource.impl.ResourceSetImplprotected void registerURI(org.eclipse.emf.ecore.resource.Resource resource)
registerURI in class XtextResourceSetpublic 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 nulljava.lang.Exception - the exception that was thrown by the unit.protected XtextResourceSet.ResourcesList createResourceList()
XtextResourceSetcreateResourceList in class XtextResourceSet