org.eclipse.emf.compare.diff.engine
Class EcoreDiffEngine

java.lang.Object
  extended by org.eclipse.emf.compare.diff.engine.GenericDiffEngine
      extended by org.eclipse.emf.compare.diff.engine.EcoreDiffEngine
All Implemented Interfaces:
IDiffEngine

public class EcoreDiffEngine
extends GenericDiffEngine

This will add ecore-specific behavior to the GenericDiffEngine.


Field Summary
 
Fields inherited from class org.eclipse.emf.compare.diff.engine.GenericDiffEngine
ANCESTOR_OBJECT, LEFT_OBJECT, RIGHT_OBJECT, unMatchedElements
 
Constructor Summary
EcoreDiffEngine()
           
 
Method Summary
protected  void checkMoves(DiffGroup root, Match2Elements matchElement)
          This will check if the elements matched by a given Match2Elements have been moved..
protected  void checkMoves(DiffGroup root, Match3Element matchElement)
          This will check if the elements matched by a given Match3Element have been moved since the models common ancestor.
 
Methods inherited from class org.eclipse.emf.compare.diff.engine.GenericDiffEngine
addInContainerPackage, checkAttributesUpdates, checkAttributesUpdates, checkForDiffs, checkForDiffs, checkReferencesUpdates, checkReferencesUpdates, doDiff, doDiff, doDiffThreeWay, doDiffTwoWay, getMatchedEObject, getMatchedEObject, processUnMatchedElements, processUnMatchedElements, reset, shouldBeIgnored, shouldBeIgnored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EcoreDiffEngine

public EcoreDiffEngine()
Method Detail

checkMoves

protected void checkMoves(DiffGroup root,
                          Match2Elements matchElement)
This will check if the elements matched by a given Match2Elements have been moved..

Overrides:
checkMoves in class GenericDiffEngine
Parameters:
root - root of the DiffElement to create if the elements have actually been moved.
matchElement - This contains the mapping information about the elements we need to check for a move.
See Also:
GenericDiffEngine.checkMoves(org.eclipse.emf.compare.diff.metamodel.DiffGroup, org.eclipse.emf.compare.match.metamodel.Match2Elements)

checkMoves

protected void checkMoves(DiffGroup root,
                          Match3Element matchElement)
This will check if the elements matched by a given Match3Element have been moved since the models common ancestor.

Overrides:
checkMoves in class GenericDiffEngine
Parameters:
root - root of the DiffElement to create if the elements have actually been moved.
matchElement - This contains the mapping information about the elements we need to check for a move.
See Also:
GenericDiffEngine.checkMoves(org.eclipse.emf.compare.diff.metamodel.DiffGroup, org.eclipse.emf.compare.match.metamodel.Match3Element)

Copyright 2006 IBM Corporation and others.
All Rights Reserved.