|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.compare.diff.service.DiffService
public final class DiffService
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 DiffResourceSet |
doDiff(MatchResourceSet matchResourceSet)
Returns a DiffResourceSet created by differencing all MatchModels contained by match. |
static DiffResourceSet |
doDiff(MatchResourceSet matchResourceSet,
boolean threeWay)
Returns a DiffResourceSet created by differencing all MatchModels contained by match. |
static IDiffEngine |
getBestDiffEngine(java.lang.String extension)
Returns the best IDiffEngine for a file given its extension. |
static java.util.Collection<AbstractDiffExtension> |
getCorrespondingDiffExtensions(java.lang.String extension)
Returns all AbstractDiffExtensions registered against the given file extension. |
static void |
setDiffEngineSelector(IDiffEngineSelector selector)
Sets the diff engine selector that is to be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DiffModel doDiff(MatchModel match)
match - The matching model.
public static DiffModel doDiff(MatchModel match,
boolean threeWay)
match - the matching modelthreeWay - True if we're computing a three way comparison, False otherwise.
public static DiffResourceSet doDiff(MatchResourceSet matchResourceSet)
match. This
will call for a two-way differencing.
matchResourceSet - Contains the MatchModels for all compared resources.
public static DiffResourceSet doDiff(MatchResourceSet matchResourceSet,
boolean threeWay)
match.
Depending on the value of threeWay, this will call for either two- or three-way
differencing.
matchResourceSet - Contains the MatchModels for all compared resources.threeWay - True if we're computing a three way comparison, False otherwise.
public static IDiffEngine getBestDiffEngine(java.lang.String extension)
IDiffEngine for a file given its extension.
extension - The extension of the file we need an IDiffEngine for.
IDiffEngine for the given file extension.public static void setDiffEngineSelector(IDiffEngineSelector selector)
selector - the new engine selector.public static java.util.Collection<AbstractDiffExtension> getCorrespondingDiffExtensions(java.lang.String extension)
AbstractDiffExtensions registered against the given file extension.
extension - The extension of the file we need the AbstractDiffExtensions for.
AbstractDiffExtensions registered against the given file extension.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||