Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » EMFCompare(Output file resulted from compare with )
EMFCompare [message #1749102] Thu, 01 December 2016 20:50 Go to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 184
Registered: October 2014
Senior Member
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 #1749131 is a reply to message #1749102] Fri, 02 December 2016 08:30 Go to previous messageGo to next message
Philip Langer is currently offline Philip LangerFriend
Messages: 99
Registered: March 2015
Location: Vienna, Austria
Member

Hi,

to my knowledge, there is no dedicated editor for exported comparison models. You could just open it with Sample Reflective Ecore Editor though, because the comparison model is an EMF-based model.

The metamodel of the comparison is in org.eclipse.emf.compare/model/compare.ecore. In the developer guide, there is an overview of the 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/
Re: EMFCompare [message #1749168 is a reply to message #1749131] Fri, 02 December 2016 15:04 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
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 Go to previous messageGo to next message
Philip Langer is currently offline Philip LangerFriend
Messages: 99
Registered: March 2015
Location: Vienna, Austria
Member

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 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
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

Re: EMFCompare [message #1749655 is a reply to message #1749335] Fri, 09 December 2016 08:48 Go to previous messageGo to next message
Philip Langer is currently offline Philip LangerFriend
Messages: 99
Registered: March 2015
Location: Vienna, Austria
Member

Hi Taghreed,

there is a how-to on writing Eclipse plug-ins in the Eclipse help: http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Ffirstplugin.htm

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/
Re: EMFCompare [message #1749684 is a reply to message #1749655] Fri, 09 December 2016 15:38 Go to previous message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 184
Registered: October 2014
Senior Member
Thanks Philip.

Best wishes,
Taghreed
Previous Topic:Papyrus model comparison results in a lot of non-existing differences
Next Topic:[Papyrus diagram]Explaination needed of Shape (null) / Connector (null) entries in comparison editor
Goto Forum:
  


Current Time: Fri Apr 19 13:15:14 GMT 2024

Powered by FUDForum. Page generated in 0.02627 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top