com.microsoft.tfs.core.externaltools.formatters
Class MergeToolArgumentFormatter
java.lang.Object
com.microsoft.tfs.core.externaltools.formatters.AbstractToolArgumentFormatter
com.microsoft.tfs.core.externaltools.formatters.MergeToolArgumentFormatter
public class MergeToolArgumentFormatter
- extends AbstractToolArgumentFormatter
Takes individual string arguments for a merge tool and replaces the correct
placeholders ("%1", etc.) in the an ExternalTool
's arguments.
- Since:
- TEE-SDK-10.1
- Thread-safety:
- immutable
Method Summary |
java.lang.String[] |
formatArguments(ExternalTool tool,
java.lang.String original,
java.lang.String modified,
java.lang.String base,
java.lang.String merged,
java.lang.String originalLabel,
java.lang.String modifiedLabel,
java.lang.String baseLabel,
java.lang.String mergedLabel)
Formats the merge arguments with the given substitutions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MergeToolArgumentFormatter
public MergeToolArgumentFormatter()
formatArguments
public java.lang.String[] formatArguments(ExternalTool tool,
java.lang.String original,
java.lang.String modified,
java.lang.String base,
java.lang.String merged,
java.lang.String originalLabel,
java.lang.String modifiedLabel,
java.lang.String baseLabel,
java.lang.String mergedLabel)
- Formats the merge arguments with the given substitutions.
- Parameters:
tool
- the ExternalTool
to format arguments for (must not be
null
)original
- the filename of the "original" file (server version) (must not be
null
)modified
- the filename of the "modified" file (local version) (must not be
null
)base
- the filename of the "base" file (common ancestor) (must not be
null
)merged
- the filename of the "merged" file (output by merger) (must not be
null
)originalLabel
- the label for the original file formatArgumentsmodifiedLabel
- the label for the modified file formatArgumentsbaseLabel
- the label for the base file formatArgumentsmergedLabel
- the label for the merged file formatArguments
- Returns:
- this tool's configured arguments after the given strings are
substituted
© 2015 Microsoft. All rights reserved.