Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » How to export differences in ECL
How to export differences in ECL [message #1726702] Tue, 15 March 2016 20:42 Go to next message
Mohammadreza Sharbaf is currently offline Mohammadreza SharbafFriend
Messages: 17
Registered: February 2016
Junior Member

Hi all,

I need to export differences between two models in Epsilon, I read that Match-trace enables users to export the matches calculated during the comparison,
Are there any attributes (or ways) to export the differences in ECL?

Best regards,
Mohammadreza
Re: How to export differences in ECL [message #1726769 is a reply to message #1726702] Wed, 16 March 2016 10:55 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 472
Registered: January 2010
Senior Member
Does this example help?

http://www.eclipse.org/epsilon/examples/index.php?example=org.eclipse.epsilon.examples.oomerging

You'll have to clone the Epsilon Git repository [1] and go to examples/org.eclipse.epsilon.examples.oomerging. It has an Ant buildfile that shows how to use the exportmatchtrace attribute to pass on the trace model to the next E*L task (which could, for instance, produce a model out of it).

[1]: http://www.eclipse.org/epsilon/download/#sourcecode

[Updated on: Wed, 16 March 2016 10:56]

Report message to a moderator

Re: How to export differences in ECL [message #1726796 is a reply to message #1726769] Wed, 16 March 2016 14:40 Go to previous messageGo to next message
Mohammadreza Sharbaf is currently offline Mohammadreza SharbafFriend
Messages: 17
Registered: February 2016
Junior Member

Hi Antonio,

I want to export differences, but in this example, matches are exported.
Re: How to export differences in ECL [message #1726822 is a reply to message #1726796] Wed, 16 March 2016 16:30 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 472
Registered: January 2010
Senior Member
The org.eclipse.epsilon.ecl.trace.Match objects in the trace include a "matching" flag that may be true or false. You could try looking at the elements that have the flag set to false and seeing if this matches your expectations.
Re: How to export differences in ECL [message #1728999 is a reply to message #1726822] Sat, 09 April 2016 07:30 Go to previous message
Mohammadreza Sharbaf is currently offline Mohammadreza SharbafFriend
Messages: 17
Registered: February 2016
Junior Member

Hi Antonio,

Thank you for the help, but this idea didn't work correctly. However, I wrote a function similar to getReduced() that do this work.

Cheers,
Mohammadreza
Previous Topic:About Extending Metamodels
Next Topic:[EVL] Get list of properties (Attributes + child elements)
Goto Forum:
  


Current Time: Fri Apr 20 07:21:00 GMT 2018

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

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