public class CompositeDeltaImpl extends DeltaImpl implements CompositeDelta
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
deltas |
appliedResolution, base, composites, conflicts, contributor, customProperties, dependents, prerequisites, propertyChangeSupport, systemDelta, type
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
RESOLUTION_PROPERTY
Modifier | Constructor and Description |
---|---|
protected |
CompositeDeltaImpl() |
|
CompositeDeltaImpl(org.eclipse.emf.ecore.resource.Resource base,
org.eclipse.emf.ecore.resource.Resource contributor,
java.util.List deltas,
boolean isAtomic,
java.lang.String shortDescription,
java.lang.String longDescription) |
Modifier and Type | Method and Description |
---|---|
boolean |
addDelta(Delta delta) |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener that can register interest in a delta's
RESOLVED_PROPERTY . |
boolean |
canResolve(Resolution newResolution)
Returns whether or not this delta can be resolved with the new
resolution.
|
boolean |
canUnresolve()
Returns whether or not this delta can be unresolved.
|
void |
collectAtomicDeltaSet(Resolution resolution,
boolean includeRequiredDeltas,
java.util.Set atomicDeltaSet)
Collects all deltas, in the same contributor, required to resolve this
delta with the given resolution, with the option of including required
deltas or not.
|
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
java.lang.Object |
getAdapter(java.lang.Class adapter) |
java.lang.Object |
getAffectedObject()
Returns the object that has been affected.
|
java.lang.String |
getAffectedObjectMatchingId()
Returns the matching ID of the object that has been affected if the
feature of the location is a containment reference, otherwise null.
|
java.util.Set |
getAtomicDeltaSet(Resolution resolution,
boolean includeRequiredDeltas)
Returns a set of all deltas in the same contributor that must be
atomically resolved.
|
protected java.util.Set |
getAtomicDeltaSet(Resolution resolution,
boolean includeRequiredDeltas,
java.util.Set atomicDeltaSet)
Returns a set of all deltas in the same contributor that must be
atomically resolved.
|
java.util.List |
getDeltas()
Returns all the deltas that this delta composes.
|
Location |
getDestinationLocation()
Returns the destination location of the delta.
|
java.lang.String |
getId()
Returns a unique ID for this delta.
|
java.util.Set |
getLeafDeltas()
Returns all leaf deltas referenced by this composite.
|
java.lang.String |
getLongDescription()
Returns a long description.
|
Resolution |
getResolution()
Returns the current resolution of the delta.
|
java.lang.String |
getShortDescription()
Returns a short description.
|
Location |
getSourceLocation()
Returns the source location of the delta.
|
boolean |
isAccepted()
Returns whether or not this delta is accepted.
|
boolean |
isAtomic()
Returns whether or not all the composed deltas must be accepted or
rejected atomically.
|
boolean |
isLeafDeltaConflicting()
Returns whether or not a leaf delta is conflicting with another delta.
|
boolean |
isRejected()
Returns whether or not this delta is rejected.
|
boolean |
isResolved()
Returns whether or not this delta is resolved.
|
boolean |
isSameDelta(Delta d)
Returns whether or not resolving this delta has the same effect as
resolving the given delta.
|
void |
print(java.io.PrintStream out)
Prints a text representation to a stream.
|
void |
propertyChange(java.beans.PropertyChangeEvent event) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener.
|
void |
resolve(Resolution newResolution)
Applies the new resolution with this delta.
|
void |
toStringImpl(java.lang.StringBuilder sb)
Appends an String representation to the string buffer.
|
void |
unresolve()
Unapplies the current resolution with this delta.
|
addComposite, addConflict, addDependent, addPrerequisite, canAutoResolve, collectResolutionSet, deleteConflict, deleteDependent, deletePrerequisite, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eUnset, getAppliedResolution, getAtomicComposites, getBase, getComposites, getConflicts, getContributor, getCustomProperty, getDependents, getDependentsRecursively, getDestinationNewSetState, getDestinationOldSetState, getEquivalentDelta, getPrerequisites, getPrerequisitesRecursively, getRequiredDeltasRecursively, getResolutionSet, getSourceNewSetState, getSourceOldSetState, getType, hasUnresolvedConflicts, isConflicting, isDestinationSetStateChanged, isInComposite, isInConflictedAtomicContainer, isSourceSetStateChanged, isSystemDelta, setAppliedResolution, setCustomProperty, setEquivalentDelta, setSystemDelta, toString
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addComposite, addConflict, addDependent, addPrerequisite, canAutoResolve, collectResolutionSet, deleteConflict, deleteDependent, deletePrerequisite, getAppliedResolution, getAtomicComposites, getBase, getComposites, getConflicts, getContributor, getCustomProperty, getDependents, getDependentsRecursively, getDestinationNewSetState, getDestinationOldSetState, getEquivalentDelta, getPrerequisites, getPrerequisitesRecursively, getResolutionSet, getSourceNewSetState, getSourceOldSetState, getType, hasUnresolvedConflicts, isConflicting, isDestinationSetStateChanged, isInConflictedAtomicContainer, isSourceSetStateChanged, isSystemDelta, setAppliedResolution, setCustomProperty, setEquivalentDelta, setSystemDelta
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
protected CompositeDeltaImpl()
public CompositeDeltaImpl(org.eclipse.emf.ecore.resource.Resource base, org.eclipse.emf.ecore.resource.Resource contributor, java.util.List deltas, boolean isAtomic, java.lang.String shortDescription, java.lang.String longDescription)
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class DeltaImpl
public boolean isLeafDeltaConflicting()
CompositeDelta
isLeafDeltaConflicting
in interface CompositeDelta
public boolean addDelta(Delta delta)
addDelta
in interface CompositeDelta
public Location getSourceLocation()
Delta
getSourceLocation
in interface Delta
getSourceLocation
in class DeltaImpl
public Location getDestinationLocation()
Delta
getDestinationLocation
in interface Delta
getDestinationLocation
in class DeltaImpl
public java.lang.Object getAffectedObject()
Delta
getAffectedObject
in interface Delta
getAffectedObject
in class DeltaImpl
public java.lang.String getAffectedObjectMatchingId()
Delta
getAffectedObjectMatchingId
in interface Delta
getAffectedObjectMatchingId
in class DeltaImpl
public boolean isResolved()
Delta
isResolved
in interface Delta
isResolved
in class DeltaImpl
public boolean isAccepted()
Delta
isAccepted
in interface Delta
isAccepted
in class DeltaImpl
public boolean isRejected()
Delta
isRejected
in interface Delta
isRejected
in class DeltaImpl
public Resolution getResolution()
Delta
getResolution
in interface Delta
getResolution
in class DeltaImpl
public void resolve(Resolution newResolution)
Delta
public boolean canResolve(Resolution newResolution)
Delta
canResolve
in interface Delta
canResolve
in class DeltaImpl
newResolution
- the resolutionpublic boolean canUnresolve()
Delta
canUnresolve
in interface Delta
canUnresolve
in class DeltaImpl
public void unresolve()
Delta
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Delta
RESOLVED_PROPERTY
.addPropertyChangeListener
in interface Delta
addPropertyChangeListener
in class DeltaImpl
listener
- a property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Delta
removePropertyChangeListener
in interface Delta
removePropertyChangeListener
in class DeltaImpl
listener
- a property change listenerpublic java.util.List getDeltas()
CompositeDelta
getDeltas
in interface CompositeDelta
public java.util.Set getLeafDeltas()
CompositeDelta
getLeafDeltas
in interface CompositeDelta
public boolean isAtomic()
CompositeDelta
isAtomic
in interface CompositeDelta
public void toStringImpl(java.lang.StringBuilder sb)
Delta
toStringImpl
in interface Delta
toStringImpl
in class DeltaImpl
sb
- the string buffer to append topublic java.lang.String getId()
Delta
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class DeltaImpl
public java.lang.String getLongDescription()
DescriptionProvider
getLongDescription
in interface DescriptionProvider
public java.lang.String getShortDescription()
DescriptionProvider
getShortDescription
in interface DescriptionProvider
public boolean isSameDelta(Delta d)
Delta
isSameDelta
in interface Delta
public java.util.Set getAtomicDeltaSet(Resolution resolution, boolean includeRequiredDeltas)
DeltaImpl
getAtomicDeltaSet
in interface Delta
getAtomicDeltaSet
in class DeltaImpl
resolution
- a resolutionincludeRequiredDeltas
- if true, include required deltas, otherwise don'tprotected java.util.Set getAtomicDeltaSet(Resolution resolution, boolean includeRequiredDeltas, java.util.Set atomicDeltaSet)
DeltaImpl
getAtomicDeltaSet
in class DeltaImpl
public void collectAtomicDeltaSet(Resolution resolution, boolean includeRequiredDeltas, java.util.Set atomicDeltaSet)
Delta
collectAtomicDeltaSet
in interface Delta
collectAtomicDeltaSet
in class DeltaImpl
resolution
- a resolutionincludeRequiredDeltas
- if true, include required deltas, otherwise don'tatomicDeltaSet
- set atomic delta setpublic void print(java.io.PrintStream out)
Printable
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener