Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » How to compare EMF Objects - createDefaultScope() deprecated ?
How to compare EMF Objects - createDefaultScope() deprecated ? [message #1099795] Mon, 02 September 2013 04:10 Go to next message
Kosala Yapa is currently offline Kosala Yapa
Messages: 159
Registered: September 2010
Senior Member
Hi there,

I am using EMF Compare 2.

I have a persisted EMF object which I read into a resource set. Now I need to compare this resource set with another EMF Object, which is in memory.

I tried the following approach.

EMFCompare comparator = EMFCompare.builder().build();

IComparisonScope scope = EMFCompare.createDefaultScope(emfObject.eResource().getResourceSet(),
resourceSet2);
Comparison result = comparator.compare(scope);

It looks to me, createDefaultScope() is deprecated. Can someone help me to figure out the latest approach of comparing two resource sets (or EMF Object and resource set)?

Cheers
Kosala

[Updated on: Mon, 02 September 2013 04:11]

Report message to a moderator

Re: How to compare EMF Objects - createDefaultScope() deprecated ? [message #1102019 is a reply to message #1099795] Thu, 05 September 2013 04:34 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1622
Registered: July 2009
Senior Member
Hi,

Please see the javadoc of the deprecated method for information on how to replace it, or the FAQ on how to call EMF Compare.

Laurent Goubet
Obeo

[Updated on: Thu, 05 September 2013 04:36]

Report message to a moderator

Previous Topic:EMF Compare 2.1: Extension Point org.eclipse.emf.compare.ui.team.handler
Next Topic:Missing preference options for EMF compare 2.1
Goto Forum:
  


Current Time: Sat Aug 02 02:34:03 EDT 2014

Powered by FUDForum. Page generated in 0.02066 seconds