Hi everyone,
i'm trying to write a GMF notation Diff and Merge Visitor for my graphical comparison.
i saw an example were the following class org.eclipse.emf.compare.diff.metamodel.util.DiffSwitch was used to extend another class where i saw the following methods : caseRemoveModelElement, caseAddModelElement, caseUpdateAttribute.
I do know from the emf Documentation that to change the end result of a diff Process i should implement a the IDiffProcessor Interface and i found similar Method there like attributeChange, referenceChange and so on.
i'm really noob with EMF Compare.
i saw that code from the DiffBuilder Class an implementation of the IDiffProcessor.
public void resourceAttachmentChange(Match match, String uri, DifferenceKind kind, DifferenceSource source) {
final ResourceAttachmentChange change = CompareFactory.eINSTANCE.createResourceAttachmentChange();
change.setMatch(match);
change.setResourceURI(uri);
change.setKind(kind);
change.setSource(source);
}
do i have to call this method after i've written my code.
Is there any example of the implementation of the IDiffProcessor?