org.eclipse.xtext.builder.resourceloader
Class SerialResourceLoader

java.lang.Object
  extended by org.eclipse.xtext.builder.resourceloader.AbstractResourceLoader
      extended by org.eclipse.xtext.builder.resourceloader.SerialResourceLoader
All Implemented Interfaces:
IResourceLoader

public class SerialResourceLoader
extends AbstractResourceLoader

Loads resources in sequentially in the same thread as it was invoked.

Since:
2.1
Author:
Lieven Lemiengre - Initial contribution and API, Sebastian Zarnekow - Use IProject aware IResourceSetProvider instead of Provider

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.builder.resourceloader.AbstractResourceLoader
AbstractResourceLoader.CheckedLoadOperation
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.builder.resourceloader.IResourceLoader
IResourceLoader.LoadOperation, IResourceLoader.LoadOperationException, IResourceLoader.LoadResult, IResourceLoader.Sorter
 
Constructor Summary
SerialResourceLoader(IResourceSetProvider resourceSetProvider, IResourceLoader.Sorter sorter)
           
 
Method Summary
 IResourceLoader.LoadOperation create(org.eclipse.emf.ecore.resource.ResourceSet parent, org.eclipse.core.resources.IProject project)
          Create a LoadOperation.
 
Methods inherited from class org.eclipse.xtext.builder.resourceloader.AbstractResourceLoader
getResourceSetProvider, getSorter, loadResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialResourceLoader

public SerialResourceLoader(IResourceSetProvider resourceSetProvider,
                            IResourceLoader.Sorter sorter)
Method Detail

create

public IResourceLoader.LoadOperation create(org.eclipse.emf.ecore.resource.ResourceSet parent,
                                            org.eclipse.core.resources.IProject project)
Description copied from interface: IResourceLoader
Create a LoadOperation. Be careful, while the load operation is running the parent ResourceSet may be read from different threads. Synchronize on the parent ResourceSet when you interact with it!

Parameters:
parent - the parent ResourceSet
Returns:
a LoadOperation