Class SynchronizedXtextResourceSet

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl

        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>
      • Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        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, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
    • Field Summary

      • Fields inherited from class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl

        adapterFactories, loadOptions, packageRegistry, resourceFactoryRegistry, resourceLocator, resources, uriConverter, uriResourceMap
      • Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl

        eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
      • Fields inherited from interface org.eclipse.emf.ecore.resource.ResourceSet

        RESOURCE_SET__RESOURCES
    • Constructor Detail

      • SynchronizedXtextResourceSet

        public SynchronizedXtextResourceSet()
    • Method Detail

      • getResource

        public org.eclipse.emf.ecore.resource.Resource getResource​(org.eclipse.emf.common.util.URI uri,
                                                                   boolean loadOnDemand)
        Specified by:
        getResource in interface org.eclipse.emf.ecore.resource.ResourceSet
        Overrides:
        getResource in class XtextResourceSet
      • createResource

        public org.eclipse.emf.ecore.resource.Resource createResource​(org.eclipse.emf.common.util.URI uri)
        Specified by:
        createResource in interface org.eclipse.emf.ecore.resource.ResourceSet
        Overrides:
        createResource in class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
      • getResources

        public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource> getResources()
        Specified by:
        getResources in interface org.eclipse.emf.ecore.resource.ResourceSet
        Overrides:
        getResources in class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
      • registerURI

        protected void registerURI​(org.eclipse.emf.ecore.resource.Resource resource)
        Overrides:
        registerURI in class XtextResourceSet
      • execute

        public <Result> Result execute​(org.eclipse.xtext.util.concurrent.IUnitOfWork<Result,​? super SynchronizedXtextResourceSet> unit)
                                throws java.lang.Exception
        Execute the unit of work in a context that allows for modification.
        Specified by:
        execute in interface ISynchronizable<SynchronizedXtextResourceSet>
        Parameters:
        unit - the action to perform. May not be null
        Throws:
        java.lang.Exception - the exception that was thrown by the unit.
        Since:
        2.4