public class ModelsResolution extends AbstractResolution
context, diagnostic, logger, monitor
Constructor and Description |
---|
ModelsResolution(IResolutionContext context,
IProgressMonitor monitor,
IStorageProviderAccessor storageAccessor,
IStorage left,
IStorage right,
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,
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.SynchronizedResourceSet resourceSet)
Provides a
Function that converts a givn URI into a Computation that can be run by a
ResourceComputationScheduler . |
SynchronizationModel |
run()
Executes the resolution.
|
asURISet, call, getTicks, resolveTraversal
public ModelsResolution(IResolutionContext context, IProgressMonitor monitor, IStorageProviderAccessor storageAccessor, IStorage left, IStorage right, 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() throws InterruptedException
InterruptedException
- If the treatment is interrupted.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, org.eclipse.emf.compare.ide.ui.internal.logical.resolver.SynchronizedResourceSet resourceSet)
Function
that converts a givn 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, 2014 Obeo and others. All rights reserved.