org.eclipse.emf.compare.diff.service
Class DiffService

java.lang.Object
  extended by org.eclipse.emf.compare.diff.service.DiffService

public final class DiffService
extends java.lang.Object

Parses extension meta data to fetch the diff engine to use.


Method Summary
static DiffModel doDiff(MatchModel match)
          Return a diffmodel created using the match model.
static DiffModel doDiff(MatchModel match, boolean threeWay)
          Return a diffmodel created using the match model.
static IDiffEngine getBestDiffEngine(java.lang.String extension)
          Returns the best IDiffEngine for a file extension.
static java.util.Collection<AbstractDiffExtension> getCorrespondingDiffExtensions(java.lang.String extension)
          Returns all AbstractDiffExtensions registered against the given file extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doDiff

public static DiffModel doDiff(MatchModel match)
Return a diffmodel created using the match model. This implementation is a generic and simple one.

Parameters:
match - The matching model.
Returns:
The corresponding diff model.

doDiff

public static DiffModel doDiff(MatchModel match,
                               boolean threeWay)
Return a diffmodel created using the match model. This implementation is a generic and simple one.

Parameters:
match - the matching model
threeWay - True if we're computing a three way comparison, False otherwise.
Returns:
the corresponding diff model

getBestDiffEngine

public static IDiffEngine getBestDiffEngine(java.lang.String extension)
Returns the best IDiffEngine for a file extension.

Parameters:
extension - The extension of the file we need a IDiffEngine for.
Returns:
The best IDiffEngine for the given file extension.

getCorrespondingDiffExtensions

public static java.util.Collection<AbstractDiffExtension> getCorrespondingDiffExtensions(java.lang.String extension)
Returns all AbstractDiffExtensions registered against the given file extension.

Parameters:
extension - The extension of the file we need the AbstractDiffExtensions for.
Returns:
All of the AbstractDiffExtensions registered against the given file extension.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.