|
Re: Detailed informations on a difference [message #1787214 is a reply to message #1786878] |
Tue, 22 May 2018 08:05 |
|
Hello Viktoria,
All information should be available to you from the Comparison model, but how to exploit it will really depend on your use case. The "Diff" elements wil usually point to the changed element, in the changed model. for example a diff of kind "ADD" and source "LEFT" will point as its "value" to the new element that was added in the left model (however, a diff of kind "REMOVE" and source "LEFT" will point as its value to the old value that was removed from the left, and that "old value" is located in the origin model, which will be the common ancestor in three way comparisons and the right model otherwise).
The "Match" elements you get with "eContainer" on differences are the matches between right, left and ancestor that we've been comparing. The containing "Match" of a difference is the element inside which something changed : if the value of a reference has been changed, then the Match is the element holding the reference... but for ADD and REMOVE on containment references, you have to remember that the containing match is the element "containing" the added or removed element.
I can point you towards the right way of finding location information if you have specific questions, but you'll have to start experimenting to see what exactly you're missing so that I can help you.
Laurent Goubet
Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.02962 seconds