@Beta
public interface IModelResolver
Clients can subclass AbstractModelResolver
instead.
Modifier and Type | Method and Description |
---|---|
boolean |
canResolve(org.eclipse.core.resources.IStorage sourceStorage)
This will be used in order to determine whether this resolver can be used for the given storage.
|
void |
dispose()
This will be called when the contributing plugin of this class is about to be stopped.
|
void |
initialize()
This will be called as soon as the class is created by the registry.
|
StorageTraversal |
resolveLocalModel(org.eclipse.core.resources.IResource resource,
org.eclipse.core.runtime.IProgressMonitor monitor)
This will be called by Team in order to determine whether a given file can be compared alone, or if it
needs to be compared along with others (and, thus, compared from the synchronize view).
|
SynchronizationModel |
resolveLocalModels(org.eclipse.core.resources.IResource left,
org.eclipse.core.resources.IResource right,
org.eclipse.core.resources.IResource origin,
org.eclipse.core.runtime.IProgressMonitor monitor)
Called by EMF Compare in order to resolve the logical models corresponding to the given IResources.
|
SynchronizationModel |
resolveModels(IStorageProviderAccessor storageAccessor,
org.eclipse.core.resources.IStorage left,
org.eclipse.core.resources.IStorage right,
org.eclipse.core.resources.IStorage origin,
org.eclipse.core.runtime.IProgressMonitor monitor)
This will be called by EMF Compare in order to resolve the whole logical models containing the given
storages.
|
SynchronizationModel resolveLocalModels(org.eclipse.core.resources.IResource left, org.eclipse.core.resources.IResource right, org.eclipse.core.resources.IResource origin, org.eclipse.core.runtime.IProgressMonitor monitor) throws InterruptedException
left
- The file that will be considered as the "starting point" of the traversal to resolve as the
left logical model.right
- "starting point" of the traversal to resolve as the right logical model.origin
- "starting point" of the traversal to resolve as the origin logical model (common ancestor of
left and right). Can be null
.monitor
- Monitor on which to report progress to the user.InterruptedException
- Thrown if the resolution is cancelled or interrupted one way or another.SynchronizationModel resolveModels(IStorageProviderAccessor storageAccessor, org.eclipse.core.resources.IStorage left, org.eclipse.core.resources.IStorage right, org.eclipse.core.resources.IStorage origin, org.eclipse.core.runtime.IProgressMonitor monitor) throws InterruptedException
storageAccessor
- The accessor that can be used to retrieve synchronization information between our resources.left
- The storage that will be considered as the "starting point" of the traversal to resolve as
the left logical model.right
- "starting point" of the traversal to resolve as the right logical model.origin
- "starting point" of the traversal to resolve as the origin logical model (common ancestor of
left and right). Can be null
.monitor
- Monitor on which to report progress to the user.InterruptedException
- Thrown if the resolution is cancelled or interrupted one way or another.StorageTraversal resolveLocalModel(org.eclipse.core.resources.IResource resource, org.eclipse.core.runtime.IProgressMonitor monitor) throws InterruptedException
resource
- The workspace resource for which we need a traversal.monitor
- Monitor on which to report progress to the user.InterruptedException
- Thrown if the resolution is cancelled or interrupted one way or another.boolean canResolve(org.eclipse.core.resources.IStorage sourceStorage)
sourceStorage
- The resource we're trying to resolve the logical model of. This will always be the "source"
or "left" variant of the compared resource.true
if this resolver is capable of handling the given storage, false
otherwise.void initialize()
void dispose()
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.