com.starbase.starteam.viewcomparemerge
Class StarTeamFileMergeAdapter
java.lang.Object
|
+--com.starbase.starteam.viewcomparemerge.FileMergeAdapter
|
+--com.starbase.starteam.viewcomparemerge.StarTeamFileMergeAdapter
- public class StarTeamFileMergeAdapter
- extends FileMergeAdapter
Facilitates the use of the StarTeam File Compare / Merge tool
(also known as "DeltaII")
to resolve a file merge condition. Used as follows:
FileMergeAdapter tool = new StarTeamFileMergeAdapter(diff);
int exitCode = tool.merge();
if (exitCode == 0) {
System.out.println("The merge was successful!");
} else {
System.out.println("Merge failed with exit code: " + exitCode);
}
Note that StarTeam File Compare / Merge is the default file merge tool in StarTeam 9.0 and later.
It replaces VisMerge.exe, which is now obsolete.
- See Also:
WorkstationDefaultMergeAdapter,
VisMergeAdapter,
Custom3WayMergeAdapter,
FileMergeAdapter
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StarTeamFileMergeAdapter
public StarTeamFileMergeAdapter(ItemDifference diff)
- Constructs a VisMerge adapter for resolving a given file merge condition.
- Parameters:
diff - The ItemDifference whose file merge condition is to be resolved.
getAutoMergeLinesWithNoConflicts
public boolean getAutoMergeLinesWithNoConflicts()
- Determines whether or not changed lines with no conflicts will be merged automatically.
- Returns:
- true to automatically merge lines with no conflicts; false if all changes must be merged manually.
Automatic merging is enabled by default.
setAutoMergeLinesWithNoConflicts
public void setAutoMergeLinesWithNoConflicts(boolean bAutoMerge)
- Determines whether or not changed lines with no conflicts will be merged automatically.
- Parameters:
bAutoMerge - true to automatically merge lines with no conflicts; false if all changes must be merged manually.
Automatic merging is enabled by default.
StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.