EMFCompare [message #1749102] |
Thu, 01 December 2016 15:50  |
Eclipse User |
|
|
|
Hi,
This is my first time using EMFCompare so i need help to understand it.
I used compare with to compare two UML models(deployment diagrams) and when i saved the output of the comparison i got text file .
I have two questions first what is the default editor for that file in order to view the file in a correct way is it text editor or Trace file viewer?
Second is there a metamodel for that comparison output so i can follow it to understand the resulted file .I need to understand the output of the comparison(text file) to be able to query the output of the comparison which i saved as text file .
Thanks,
Taghreed.
|
|
|
|
|
Re: EMFCompare [message #1749297 is a reply to message #1749168] |
Mon, 05 December 2016 04:13   |
Eclipse User |
|
|
|
Hi,
I don't think that there is a way of storing the comparison model from the IDE UI (probably because the comparison model is not self-contained but needs the compared model versions to make sense). You could store the comparison model just like any other EMF resource, after you started the comparison using the EMF Compare API. However, in the EMF Compare developer guide there is no section, which explicitly shows how to start a comparison from a Git repository using the EMF Compare API.
Depending on what you want to do, it could be easier to write a plug-in that obtains the comparison model from an opened comparison editor. So you would start the comparison as usual and then start your plug-in, which obtains the editing domain of the comparison editor, which contains the comparison model, and do whatever you wanted to do.
Once, you have your comparison model in memory, you can query it, just like any other EMF model and obtain all the information about the differences, as given in EMF Compare's comparison model.
Best wishes,
Philip
--
Philip Langer
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
[Updated on: Mon, 05 December 2016 04:19] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03926 seconds