|Re: EMFCompare graph structure and change information [message #1006646 is a reply to message #1006638]
||Fri, 01 February 2013 10:19
| Mikael Barbero
Registered: July 2009
As a complement to 1), EMF Compare 2 displays the computed differences following this rationale:
- References changes are displayed by comparing the lists of referenced elements with move, addition and deletion depicted with boxes and placeholders linked between the lists
- Attribute changes of single valued EAttribute (upper bounds == 1) with an instance class equals to java.lang.String are displayed using classical text viewer (the one that is used when compared text files)
- Attribute changes (other than the specific case above), are displayed by comparing the lists of values with move, addition, deletion and set/unset depicted with boxes and placeholders between the lists
- Resource attachment changes are displayed in the same way as reference changes except that their is not EReference to get, but the contents of matched resources.
BTW, there is ongoing work to display containment reference changes in a tree instead as in a list to be able to display move between references and to let the user see all the containment reference changes at once.
2) It is possible to change the way EMF Compare displays the graph, but it is not possible dynamically. There is some classes to be extended and extension points to be filled. Unfortunately, there is currently no documentation how to do that. If you really want to do that, I can provide you some entry points.
3) If by "change information" you mean the change model that you can record with an EMF ChangeRecorder, the answer is no. EMF Compare uses some engines to match and compute differences between models after editing/changes.... The results is a "Comparison model". I don't think it is impossible to bridge EMF ChangeModel and EMF Compare comparison model in one direction and/or another but we do not take many experiments in that way. If you are interested in contributing such a thing, we would very keen to help you do so.
Powered by FUDForum
. Page generated in 0.03976 seconds