|
|
Re: EMFCompare [message #1749168 is a reply to message #1749131] |
Fri, 02 December 2016 15:04 |
taghreed altamimi Messages: 184 Registered: October 2014 |
Senior Member |
|
|
Thanks i got the metamodel.
How can i save the output of comparison in a format that i can query I need to query the result of comparison.For example how can i query Diff class to get its properties such as kind .In text file some properties are missing and i need to retrieve its values.
Can you please help me.
Thanks,
Taghreed
[Updated on: Fri, 02 December 2016 20:50] Report message to a moderator
|
|
|
Re: EMFCompare [message #1749297 is a reply to message #1749168] |
Mon, 05 December 2016 09:13 |
|
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/
--
Philip Langer
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
[Updated on: Mon, 05 December 2016 09:19] Report message to a moderator
|
|
|
Re: EMFCompare [message #1749335 is a reply to message #1749297] |
Mon, 05 December 2016 15:54 |
taghreed altamimi Messages: 184 Registered: October 2014 |
Senior Member |
|
|
Hi Philip,
My goal is to record all changes i have made on my source model i mean UML model because my long term goal is to propagate that changes to other model .
That's why i need to be able to query the comparison model .
Can you please provide me with any any tutorials that can help me.For example how to write plugs-in.
Thanks,
Taghreed
[Updated on: Mon, 05 December 2016 21:01] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03557 seconds