public class ResourceDependencyRemoteResolver extends Object implements IResourceDependencyRemoteResolver
IResourceDependencyRemoteResolver
.Modifier and Type | Field and Description |
---|---|
protected ResourceComputationScheduler<URI> |
scheduler
The scheduler.
|
Constructor and Description |
---|
ResourceDependencyRemoteResolver(IResolutionContext context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
demandRemoteResolve(SynchronizedResourceSet resourceSet,
URI uri,
DiagnosticSupport diagnostic,
ThreadSafeProgressMonitor tspm)
Allows callers to launch the loading and resolution of the model pointed at by the given URI, without
updating the
#dependencyGraph along the way. |
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.RemoteResolveComputation |
getRemoteResolveComputation(SynchronizedResourceSet resourceSet,
URI uri,
DiagnosticSupport diagnostic,
ThreadSafeProgressMonitor tspm)
Provides the computation to run for remote resolutions.
|
SynchronizedResourceSet |
getResourceSetForRemoteResolution(DiagnosticSupport diagnostic,
ThreadSafeProgressMonitor tspm)
Provides the resources set to use for remote resolve computations.
|
protected final ResourceComputationScheduler<URI> scheduler
public ResourceDependencyRemoteResolver(IResolutionContext context)
context
- The context, must not be null
public void demandRemoteResolve(SynchronizedResourceSet resourceSet, URI uri, DiagnosticSupport diagnostic, ThreadSafeProgressMonitor tspm)
IResourceDependencyRemoteResolver
#dependencyGraph
along the way.
This will check whether the given storage isn't already being resolved, then submit a job to the
#resolvingPool
to load and resolve the model in a separate thread.
demandRemoteResolve
in interface IResourceDependencyRemoteResolver
resourceSet
- The resource set in which to load the resource.uri
- The uri we are to try and load as a model.diagnostic
- The diagnostictspm
- Monitor on which to report progress to the user.public org.eclipse.emf.compare.ide.ui.internal.logical.resolver.RemoteResolveComputation getRemoteResolveComputation(SynchronizedResourceSet resourceSet, URI uri, DiagnosticSupport diagnostic, ThreadSafeProgressMonitor tspm)
IResourceDependencyRemoteResolver
getRemoteResolveComputation
in interface IResourceDependencyRemoteResolver
resourceSet
- The resource seturi
- The URIdiagnostic
- The diagnostictspm
- The progress monitorpublic SynchronizedResourceSet getResourceSetForRemoteResolution(DiagnosticSupport diagnostic, ThreadSafeProgressMonitor tspm)
IResourceDependencyRemoteResolver
getResourceSetForRemoteResolution
in interface IResourceDependencyRemoteResolver
diagnostic
- The diagnostictspm
- The progress monitor
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.