@Beta public final class SynchronizationModel extends Object implements IDiagnosable
Constructor and Description |
---|
SynchronizationModel(StorageTraversal leftTraversal,
StorageTraversal rightTraversal,
StorageTraversal originTraversal)
Constructs our logical model given the three traversal for our sides.
|
SynchronizationModel(StorageTraversal leftTraversal,
StorageTraversal rightTraversal,
StorageTraversal originTraversal,
Diagnostic diagnostic)
Constructs our logical model given the three traversal for our sides.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<org.eclipse.core.resources.IResource> |
getAllInvolvedResources()
Returns the all resources that are involved in this synchronization model.
|
Diagnostic |
getDiagnostic()
Returns the diagnostics that may have been issued for the synchronization model, as well as for the
left, right, and origin side.
|
StorageTraversal |
getLeftTraversal()
Returns the left traversal of this model.
|
StorageTraversal |
getOriginTraversal()
Returns the origin traversal of this model, if any.
|
Set<org.eclipse.core.resources.IResource> |
getResources()
Returns the set of resources this synchronization model spans.
|
StorageTraversal |
getRightTraversal()
Returns the right traversal of this model.
|
int |
hashCode() |
void |
setDiagnostic(Diagnostic diagnostic)
Set the diagnostic to be associated with this scope.
|
public SynchronizationModel(StorageTraversal leftTraversal, StorageTraversal rightTraversal, StorageTraversal originTraversal)
leftTraversal
- The traversal corresponding to the left side.rightTraversal
- The traversal corresponding to the right side.originTraversal
- The traversal corresponding to the common ancestor of both other side. Can be
null
.public SynchronizationModel(StorageTraversal leftTraversal, StorageTraversal rightTraversal, StorageTraversal originTraversal, Diagnostic diagnostic)
leftTraversal
- The traversal corresponding to the left side.rightTraversal
- The traversal corresponding to the right side.originTraversal
- The traversal corresponding to the common ancestor of both other side. Can be
null
.diagnostic
- The diagnostic that have gathered during the computation of the traversals.public StorageTraversal getLeftTraversal()
public StorageTraversal getRightTraversal()
public StorageTraversal getOriginTraversal()
null
if none.public Diagnostic getDiagnostic()
getDiagnostic
in interface IDiagnosable
public void setDiagnostic(Diagnostic diagnostic)
setDiagnostic
in interface IDiagnosable
diagnostic
- the diagnosticIDiagnosable.setDiagnostic(org.eclipse.emf.common.util.Diagnostic)
public Set<org.eclipse.core.resources.IResource> getResources()
The returned set may contain resources that do not exist locally. The set of resources is cached. If no
cached set is available, this method will compute and cache it. Note that the cache may not be in sync,
if the traversals of this synchronization model have been changed after getResources()
has
been called.
public Set<org.eclipse.core.resources.IResource> getAllInvolvedResources()
This is the set of resources involved directly after the instantiation of this synchronization model and hence the set of resources before any minimization that may have been applied.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.