|
Re: Extracting only differences from model comparison [message #1011304 is a reply to message #1010958] |
Tue, 19 February 2013 09:19 |
|
Greg,
Retrieving the differences from a comparison model is as easy as using Comparison.getDifferences(), which will return a list of all Diff detected between the compared models.
Persisting them without linking to the original files, however, will require you to define your own serialization format. The comparison model is an EMF model, a "Diff" is an EMF element. They are persisted following the EMF semantics, which implies that differences reference their source and target elements directly. This "direct reference" involves the original model files.
Though we're slowly updating it, the wiki already has a description of what a Diff is, and how it references other elements. You might want to use this information to serialize it differently, in a human readable fashion?
An other way would be to look into R4E, which target seems closely related to your own.
Laurent Goubet
Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.02045 seconds