|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.diff.StarTeamMerge
public final class StarTeamMerge
Run a simple merge
| Nested Class Summary | |
|---|---|
static class |
StarTeamMerge.FileDetails
Details of the file involved in the merge. |
| Constructor Summary | |
|---|---|
StarTeamMerge()
|
|
| Method Summary | |
|---|---|
DiffCompare |
getComparer()
Returns the comparer being used; defaults to the BasicCompare |
File.EOLFormat |
getEOL()
Returns the eolFormat being used; defaults to the platform EOL |
boolean |
getOverlapOnly()
return true if overlapping content is being output |
boolean |
getShowFromCommon()
return true to include changed lines from the common file |
boolean |
merge(StarTeamMerge.FileDetails mine,
StarTeamMerge.FileDetails common,
StarTeamMerge.FileDetails yours,
StarTeamMerge.FileDetails output)
Performs a three-way merge of two text files and their common ancestor. |
static EditCollection |
rollback(java.io.File tip,
java.io.File skipRevision,
java.io.File reference,
java.lang.String encoding,
java.io.File merged)
rollback a revision of a file 'somewhere in the middle' of the set of all revisions |
void |
setComparer(DiffCompare comparer)
Set the comparer to use |
void |
setEOL(File.EOLFormat eol)
Set the eolFormat to use |
void |
setOverlapOnly(boolean overlap)
set to True to output overlapping content |
void |
setShowFromCommon(boolean show)
set to True to include changed lines from the common file defaults to false |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StarTeamMerge()
| Method Detail |
|---|
public void setComparer(DiffCompare comparer)
comparer - the comparerpublic DiffCompare getComparer()
public void setEOL(File.EOLFormat eol)
eol - the eolFormat in usepublic File.EOLFormat getEOL()
public void setShowFromCommon(boolean show)
show - to include changed lines from the common filepublic boolean getShowFromCommon()
public void setOverlapOnly(boolean overlap)
overlap - to output overlapping contentpublic boolean getOverlapOnly()
public boolean merge(StarTeamMerge.FileDetails mine,
StarTeamMerge.FileDetails common,
StarTeamMerge.FileDetails yours,
StarTeamMerge.FileDetails output)
throws java.io.IOException,
DiffException
mine - Details of the first file to be merged.common - Details of the common ancestor of the two files to be merged.yours - Details of the second file to be merged.output - Details of the output file where the merged results are
written.
java.io.IOException
DiffExceptionBasicCompare
public static EditCollection rollback(java.io.File tip,
java.io.File skipRevision,
java.io.File reference,
java.lang.String encoding,
java.io.File merged)
throws java.io.IOException
tip, - the 'tip' content of the file w.r.t. which the revision needs to be rolled backskipRevision - the revision of the file representing the content to be rolled backreference - the revision of the file not containing the revision to be skipped,
(this would be expectedly the revision prior to the revision to be skipped)encoding - an encoding specified by the caller, or null to signify the platform encodingmerged - the tip file with the relevant content removed
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||