[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [emf-dev] EMF Compare 2.0 missing DiffService and MatchService? | 
| Hi Simon, 
      Please use the EMF forum
      (http://www.eclipse.org/forums/index.php/f/108/ ), prefixing your
      thread names with [EMF Compare]  for questions about the
      project.
       
      The MatchService and DiffService classes have disappeared in favor
      of the general purpose "EMFCompare" class. Comparison through API
      that was previously done through code such as :
       
      Match match = MatchService.doMatch(leftResource, rightResource); 
      Diff diff = DiffService.doDiff(match);
       
      is now done through :
       
      IComparisonScope scope =
      EMFCompare.createDefaultScope(leftResource, rightResource); 
      Comparison comparison =
      EMFCompare.builder().build().compare(scope);
       
      Options that are to be used for the comparison are now options of
      the EMFCompare builder. For example if you wish to compare without
      considering IDs :
       
      IMatchEngine matchEngine =
      DefaultMatchEngine.create(UseIdentifiers.NEVER); 
      Comparison comparison =
      EMFCompare.builder().setMatchEngine(matchEngine).build().compare(scope);
       
      Laurent Goubet 
      Obeo
       
      On 29/11/2012 17:34, Simon Goodall wrote:
    Hi,
      
 I'm looking at trying EMF Compare 2.0 rather than my current
        1.2 version. I've removed my references to the existing EMF SDK
        feature and added the EMF Core and IDE UI features from the 2.0
        p2 repository. However there no longer appears to be a
        MatchService and DiffService which I was previously using to
        programmatically compare two EMF models. There also appears to
        be no source bundles. 
 Is there a new way to perform this kind of comparison - the
        website still shows examples using MatchService? Or are there
        some other bundles I need to include from somewhere? 
 
        Thanks, 
 Simon 
 
 _______________________________________________
emf-dev mailing list
emf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emf-dev
 
 | 
begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr">Obeo</a>
email;internet:laurent.goubet@xxxxxxx
url:http://www.obeo.fr
version:2.1
end:vcard