Skip to main content



      Home
Home » Modeling » Compare » Default Comparison Scope in v3.1.0
Default Comparison Scope in v3.1.0 [message #1391072] Mon, 30 June 2014 08:02 Go to next message
Eclipse UserFriend
Hi,
today I tried to migrate my tool to Luna and I recognized that one line in my old code is deprecated:

Comparison comparison = comparator.compare(EMFCompare.createDefaultScope(originalModel, fakeRefactoredModel));


I just want to ask if the convenient replacement of the above (in EMF Compare version 3.1.0) is as follows?:

DefaultComparisonScope scope = new DefaultComparisonScope(originalModel, fakeRefactoredModel, null);
Comparison comparison = comparator.compare(scope);


Is there some document illustrating version migration issues?

cheers,
Jan
Re: Default Comparison Scope in v3.1.0 [message #1391084 is a reply to message #1391072] Mon, 30 June 2014 08:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jan,

The replacement you made is the proper one (as indicated in the javadoc of the deprecated method EMFCompare#createDefaultScope).

Unfortunately, we dont have a document all migrations issues. Still, all items that became @deprecated should have a comment explaining by what they should be substituted. If you have any issue regarding the migration, please feel free to ask any further question on this forum.

Cheers,

[Updated on: Mon, 30 June 2014 08:24] by Moderator

Re: Default Comparison Scope in v3.1.0 [message #1391093 is a reply to message #1391084] Mon, 30 June 2014 08:36 Go to previous message
Eclipse UserFriend
Ok, thanks Mikael.

cheers,
Jan
Previous Topic:Discouraged access to EMF files
Next Topic:Programmatically "merge without deletions"
Goto Forum:
  


Current Time: Sun Aug 31 04:10:56 EDT 2025

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

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

Back to the top