|
||||||||||
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(MatchModel matchModel)
Returns the best IDiffEngine for the given MatchModel . |
static IDiffEngine |
getBestDiffEngine(java.lang.String extension)
Deprecated. use getBestDiffEngine(MatchModel) instead. |
static java.util.Collection<AbstractDiffExtension> |
getCorrespondingDiffExtensions(MatchModel matchModel)
Returns all AbstractDiffExtension s registered against the given MatchModel . |
static java.util.Collection<AbstractDiffExtension> |
getCorrespondingDiffExtensions(java.lang.String extension)
Deprecated. use getCorrespondingDiffExtensions(MatchModel) instead. |
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(MatchModel matchModel)
IDiffEngine
for the given MatchModel
.
matchModel
- The match model to differentiate.
IDiffEngine
for the given MatchModel
@Deprecated public static IDiffEngine getBestDiffEngine(java.lang.String extension)
getBestDiffEngine(MatchModel)
instead.
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 java.util.Collection<AbstractDiffExtension> getCorrespondingDiffExtensions(MatchModel matchModel)
AbstractDiffExtension
s registered against the given MatchModel
.
matchModel
- The MatchModel
we need the AbstractDiffExtension
s for.
AbstractDiffExtension
s registered against the MatchModel
.@Deprecated public static java.util.Collection<AbstractDiffExtension> getCorrespondingDiffExtensions(java.lang.String extension)
getCorrespondingDiffExtensions(MatchModel)
instead.
AbstractDiffExtension
s registered against the given file extension.
extension
- The extension of the file we need the AbstractDiffExtension
s for.
AbstractDiffExtension
s registered against the given file extension.public static void setDiffEngineSelector(IDiffEngineSelector selector)
selector
- the new engine selector.
|
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 |