org.eclipse.xtext.builder.resourceloader
Interface IResourceLoader.LoadOperation

All Known Implementing Classes:
AbstractResourceLoader.CheckedLoadOperation
Enclosing interface:
IResourceLoader

public static interface IResourceLoader.LoadOperation

The Interface LoadOperation.


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.
 

Method Detail

load

void load(java.util.Collection<org.eclipse.emf.common.util.URI> uris)
Load the resources.

Parameters:
uris - the uris
Throws:
java.lang.IllegalStateException - If the loading was already started or it was cancelled

hasNext

boolean hasNext()
Checks if the ResourceLoader is still processing resources.

Returns:
true, if successful
Throws:
java.lang.IllegalStateException - If the loading was cancelled or it hasn't started yet.

next

IResourceLoader.LoadResult next()
                                throws IResourceLoader.LoadOperationException
Get the next IResourceLoader.LoadResult. This is a blocking call, it returns the next result that was finished processing.

Returns:
the next available load result
Throws:
java.lang.IllegalStateException - If the loading was cancelled or it hasn't started yet.
IResourceLoader.LoadOperationException - the load operation exception

cancel

java.util.Collection<org.eclipse.emf.common.util.URI> cancel()
Cancel loading the resources. This method can be executed multiple times.

Returns:
the collection