|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.change.util.ListDifferenceAnalyzer org.eclipse.emf.ecore.change.util.BasicChangeRecorder
public class BasicChangeRecorder
This class provides the basic methods required to implement a change recorder.
Field Summary | |
---|---|
protected ChangeDescription |
changeDescription
|
protected boolean |
recording
|
Constructor Summary | |
---|---|
BasicChangeRecorder()
|
Method Summary | |
---|---|
protected void |
consolidateChanges()
Consolidates the changes that have happen since the last consolidation. |
protected ChangeDescription |
createChangeDescription()
|
protected FeatureChange |
createFeatureChange(EObject eObject,
EStructuralFeature eStructuralFeature,
java.lang.Object value,
boolean isSet)
|
protected ResourceChange |
createResourceChange(Resource resource,
EList<java.lang.Object> value)
|
void |
dispose()
Disposes this change recorder. |
protected void |
eliminateEmptyChanges()
Eliminates changes that result in a state that's equal to the current state. |
ChangeDescription |
endRecording()
Ends the recording and consolidates the changes on the change description . |
protected void |
finalizeChange(FeatureChange change,
EObject eObject)
|
protected void |
finalizeChange(ResourceChange change)
|
protected ChangeDescription |
getChangeDescription()
|
protected FeatureChange |
getFeatureChange(java.util.List<FeatureChange> featureChanges,
EStructuralFeature eStructuralFeature)
|
protected java.util.List<FeatureChange> |
getFeatureChanges(EObject eObject)
|
protected ResourceChange |
getResourceChange(Resource resource)
|
protected EList<ResourceChange> |
getResourceChanges()
|
boolean |
isRecording()
|
protected void |
setChangeDescription(ChangeDescription changeDescription)
|
protected void |
setRecording(boolean recording)
|
protected boolean |
shouldRecord(EStructuralFeature feature,
EObject eObject)
|
ChangeDescription |
summarize()
Summarizes the changes made to the analyzed objects on the change description
returned by the endRecording() without ending the recording. |
Methods inherited from class org.eclipse.emf.ecore.change.util.ListDifferenceAnalyzer |
---|
analyzeLists, analyzeLists, createAddListChange, createListChange, createListChanges, createMoveListChange, createRemoveListChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean recording
protected ChangeDescription changeDescription
Constructor Detail |
---|
public BasicChangeRecorder()
Method Detail |
---|
public boolean isRecording()
protected void setRecording(boolean recording)
protected ChangeDescription getChangeDescription()
protected void setChangeDescription(ChangeDescription changeDescription)
public void dispose()
public ChangeDescription summarize()
Summarizes the changes made to the analyzed objects on the change description
returned by the endRecording()
without ending the recording.
This method doesn't do anything if this ChangeRecorder is not recording.
ChangeDescription
or null if there is nothing being recorded.public ChangeDescription endRecording()
change description
.
ChangeDescription
or null if there is nothing being recorded.protected void consolidateChanges()
protected void eliminateEmptyChanges()
protected boolean shouldRecord(EStructuralFeature feature, EObject eObject)
protected void finalizeChange(ResourceChange change)
protected void finalizeChange(FeatureChange change, EObject eObject)
protected EList<ResourceChange> getResourceChanges()
protected ResourceChange getResourceChange(Resource resource)
protected java.util.List<FeatureChange> getFeatureChanges(EObject eObject)
protected FeatureChange getFeatureChange(java.util.List<FeatureChange> featureChanges, EStructuralFeature eStructuralFeature)
protected FeatureChange createFeatureChange(EObject eObject, EStructuralFeature eStructuralFeature, java.lang.Object value, boolean isSet)
protected ResourceChange createResourceChange(Resource resource, EList<java.lang.Object> value)
protected ChangeDescription createChangeDescription()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |