public class ParallelResourceLoader extends AbstractResourceLoader
AbstractResourceLoader.CheckedLoadOperation
IResourceLoader.LoadOperation, IResourceLoader.LoadOperationException, IResourceLoader.LoadResult, IResourceLoader.Sorter
Constructor and Description |
---|
ParallelResourceLoader(IResourceSetProvider resourceSetProvider,
IResourceLoader.Sorter sorter,
int nThreads,
int queueSize) |
Modifier and Type | Method and Description |
---|---|
IResourceLoader.LoadOperation |
create(org.eclipse.emf.ecore.resource.ResourceSet parent,
org.eclipse.core.resources.IProject project)
Create a LoadOperation.
|
long |
getTimeout() |
protected org.eclipse.emf.ecore.resource.Resource |
loadResource(org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.resource.ResourceSet localResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet parentResourceSet) |
void |
setTimeout(long time,
java.util.concurrent.TimeUnit unit) |
getResourceSetProvider, getSorter
public ParallelResourceLoader(IResourceSetProvider resourceSetProvider, IResourceLoader.Sorter sorter, int nThreads, int queueSize)
public long getTimeout()
public void setTimeout(long time, java.util.concurrent.TimeUnit unit)
public IResourceLoader.LoadOperation create(org.eclipse.emf.ecore.resource.ResourceSet parent, org.eclipse.core.resources.IProject project)
IResourceLoader
parent
- the parent ResourceSetprotected org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.resource.ResourceSet localResourceSet, org.eclipse.emf.ecore.resource.ResourceSet parentResourceSet)
loadResource
in class AbstractResourceLoader