public class ModelsResolution extends AbstractResolution
context, diagnostic, logger, monitor
Constructor and Description |
---|
ModelsResolution(IResolutionContext context,
org.eclipse.core.runtime.IProgressMonitor monitor,
IStorageProviderAccessor storageAccessor,
org.eclipse.core.resources.IStorage left,
org.eclipse.core.resources.IStorage right,
org.eclipse.core.resources.IStorage origin)
|
Modifier and Type | Method and Description |
---|---|
protected Runnable |
getFinalizeResolvingRunnable()
Overridden to set the work remaining to zero on the progress monitor used.
|
protected com.google.common.base.Function<URI,IComputation<URI>> |
resolveRemoteURI(ThreadSafeProgressMonitor tspm,
SynchronizedResourceSet resourceSet)
Provides a
Function that converts a given URI into a Computation that can be run by a
ResourceComputationScheduler . |
SynchronizationModel |
run()
Executes the resolution.
|
asURISet, call, getTicks, resolveTraversal
public ModelsResolution(IResolutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor, IStorageProviderAccessor storageAccessor, org.eclipse.core.resources.IStorage left, org.eclipse.core.resources.IStorage right, org.eclipse.core.resources.IStorage origin)
dependencyProvider
- The dependency providerscheduler
- The muti-thread support to useeventBus
- The event busmonitor
- The progress monitor to use to report progressstorageAccessor
- The storage accessor, must not be null
left
- The left storage, can be null
right
- The right storage, can be null
origin
- The ancestor storage, can be null
public SynchronizationModel run()
protected Runnable getFinalizeResolvingRunnable()
getFinalizeResolvingRunnable
in class AbstractResolution
Runnable
to run after having resolved resources.protected com.google.common.base.Function<URI,IComputation<URI>> resolveRemoteURI(ThreadSafeProgressMonitor tspm, SynchronizedResourceSet resourceSet)
Function
that converts a given URI into a Computation that can be run by a
ResourceComputationScheduler
.tspm
- The progress monitor to useresourceSet
- The resource set to useFunction
, never null
, that can be used to remotely resolvea given URI.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.