com.microsoft.tfs.core.externaltools.formatters
Class CompareToolArgumentFormatter
java.lang.Object
com.microsoft.tfs.core.externaltools.formatters.AbstractToolArgumentFormatter
com.microsoft.tfs.core.externaltools.formatters.CompareToolArgumentFormatter
public class CompareToolArgumentFormatter
- extends AbstractToolArgumentFormatter
Takes individual string arguments for a compare tool and replaces the correct
placeholders ("%1", etc.) in the an ExternalTool's arguments.
- Thread-safety:
- immutable
- Since:
- TEE-SDK-10.1
|
Method Summary |
java.lang.String[] |
formatArguments(ExternalTool tool,
java.lang.String original,
java.lang.String modified,
java.lang.String originalLabel,
java.lang.String modifiedLabel)
Formats the compare arguments with the given substitutions. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompareToolArgumentFormatter
public CompareToolArgumentFormatter()
formatArguments
public java.lang.String[] formatArguments(ExternalTool tool,
java.lang.String original,
java.lang.String modified,
java.lang.String originalLabel,
java.lang.String modifiedLabel)
- Formats the compare 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)originalLabel - the label for the original file (must not be null)modifiedLabel - the label for the modified file (must not be null)
- Returns:
- this tool's configured arguments after the given strings are
substituted
© 2014 Microsoft. All rights reserved.