Simple Diff between two RootedModelScope [message #1082208] |
Thu, 08 August 2013 08:29 |
|
Hi Olivier,
I'm trying to use EDM to make a diff between two simple scopes: a complete one and a barely complete other (same as the first, but with one element substracted):
Resource objectResource = getResource(myobject);
EList<EObject> fullModel = new BasicEList<EObject>();
TreeIterator<EObject> it = objectResource.getAllContents();
while (it.hasNext()) {
Object current = it.next();
fullModel.add((EObject) current);
}
IFeaturedModelScope referenceScope = new RootedModelScope(fullModel);
//Make another EList with one element substracted
IFeaturedModelScope impactedScope = new RootedModelScope(withoutClipBoardContent);
The I try to call EDM to get the differences:
IComparison comparison = new EComparisonImpl(impactedScope , referenceScope );
comparison.compute(null,null,null,null);
Collection<IDifference> differences = comparison.getRemainingDifferences();//.size() == 0 :S
Unfortunately, differences size is 0, can you explain me why, or what I'm doing wrong?
Best regards,
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04067 seconds