|
Re: [Copare] Diff model description [message #102176 is a reply to message #102070] |
Fri, 09 November 2007 08:35 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Cedric Brun![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=cedric.brun%40obeo.fr) Messages: 431 Registered: July 2009 |
Senior Member |
|
|
Hi Jan,
answers are following :
> Hello,
>
> 1) Is it possible to provide some documentation of classes from Diff
> model? 2) What information these classes contains?
The diff model is the output of the EMF compare engine, it describe the
changes between the two (or three) compared models. That mean it basically
says : The class "NewClass" has been added, the Package "MyPackage" has
been moved from "rootPackage" to "childPackage" and so on.
The DiffModel contains enough information to merge these differences.
> 3) We have EMF based model instances. We want to compare these 2 models
> and show both (differences and also what is same in both models). Is diff
> model able to do it. And our model is hierarchical, does this model holds
> this hierarchical kind of information (tree like)?
That's exactly a use case of the Diff Model, EMF compare takes two models
let's say v1.uml and v2.uml, produce the match model which says
element "MyClass" in v1.uml is the same as element "MyClass" in v2.uml, and
then produce a DiffModel from that Match Model, saying (for
instance) "Attribute "abstract" in "MyClass" has been changed from "false"
to "true".
And yes, this diff model keeps the hierarchy as much as possible.
Using the UI you can export the comparison as "emfdiff" file (icon at the
top right) and then open the exported file using the "sample reflective
editor", you'll see a "SnapShot" which contains both diff and match model.
You can of course do the same kind of things programmatically
Cédric
http://cedric.brun.io news and articles on eclipse and eclipse modeling.
|
|
|
Re: [Copare] Diff model description [message #612413 is a reply to message #102070] |
Fri, 09 November 2007 08:35 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Cedric Brun![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=cedric.brun%40obeo.fr) Messages: 431 Registered: July 2009 |
Senior Member |
|
|
Hi Jan,
answers are following :
> Hello,
>
> 1) Is it possible to provide some documentation of classes from Diff
> model? 2) What information these classes contains?
The diff model is the output of the EMF compare engine, it describe the
changes between the two (or three) compared models. That mean it basically
says : The class "NewClass" has been added, the Package "MyPackage" has
been moved from "rootPackage" to "childPackage" and so on.
The DiffModel contains enough information to merge these differences.
> 3) We have EMF based model instances. We want to compare these 2 models
> and show both (differences and also what is same in both models). Is diff
> model able to do it. And our model is hierarchical, does this model holds
> this hierarchical kind of information (tree like)?
That's exactly a use case of the Diff Model, EMF compare takes two models
let's say v1.uml and v2.uml, produce the match model which says
element "MyClass" in v1.uml is the same as element "MyClass" in v2.uml, and
then produce a DiffModel from that Match Model, saying (for
instance) "Attribute "abstract" in "MyClass" has been changed from "false"
to "true".
And yes, this diff model keeps the hierarchy as much as possible.
Using the UI you can export the comparison as "emfdiff" file (icon at the
top right) and then open the exported file using the "sample reflective
editor", you'll see a "SnapShot" which contains both diff and match model.
You can of course do the same kind of things programmatically
Cédric
http://cedric.brun.io news and articles on eclipse and eclipse modeling.
|
|
|
Powered by
FUDForum. Page generated in 0.03920 seconds