org.eclipse.xtext.builder.resourceloader
Class AbstractResourceLoader.CheckedLoadOperation

java.lang.Object
  extended by org.eclipse.xtext.builder.resourceloader.AbstractResourceLoader.CheckedLoadOperation
All Implemented Interfaces:
IResourceLoader.LoadOperation
Enclosing class:
AbstractResourceLoader

protected class AbstractResourceLoader.CheckedLoadOperation
extends java.lang.Object
implements IResourceLoader.LoadOperation


Constructor Summary
AbstractResourceLoader.CheckedLoadOperation(IResourceLoader.LoadOperation parent)
           
 
Method Summary
 java.util.Collection<org.eclipse.emf.common.util.URI> cancel()
          Cancel loading the resources.
 boolean hasNext()
          Checks if the ResourceLoader is still processing resources.
 void load(java.util.Collection<org.eclipse.emf.common.util.URI> uris)
          Load the resources.
 IResourceLoader.LoadResult next()
          Get the next IResourceLoader.LoadResult.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResourceLoader.CheckedLoadOperation

public AbstractResourceLoader.CheckedLoadOperation(IResourceLoader.LoadOperation parent)
Method Detail

load

public void load(java.util.Collection<org.eclipse.emf.common.util.URI> uris)
Description copied from interface: IResourceLoader.LoadOperation
Load the resources.

Specified by:
load in interface IResourceLoader.LoadOperation
Parameters:
uris - the uris

hasNext

public boolean hasNext()
Description copied from interface: IResourceLoader.LoadOperation
Checks if the ResourceLoader is still processing resources.

Specified by:
hasNext in interface IResourceLoader.LoadOperation
Returns:
true, if successful

next

public IResourceLoader.LoadResult next()
                                throws IResourceLoader.LoadOperationException
Description copied from interface: IResourceLoader.LoadOperation
Get the next IResourceLoader.LoadResult. This is a blocking call, it returns the next result that was finished processing.

Specified by:
next in interface IResourceLoader.LoadOperation
Returns:
the next available load result
Throws:
IResourceLoader.LoadOperationException - the load operation exception

cancel

public java.util.Collection<org.eclipse.emf.common.util.URI> cancel()
Description copied from interface: IResourceLoader.LoadOperation
Cancel loading the resources. This method can be executed multiple times.

Specified by:
cancel in interface IResourceLoader.LoadOperation
Returns:
the collection