com.microsoft.tfs.core.externaltools.formatters
Class CompareToolArgumentFormatter

java.lang.Object
  extended by com.microsoft.tfs.core.externaltools.formatters.AbstractToolArgumentFormatter
      extended by 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.

Since:
TEE-SDK-10.1
Thread-safety:
immutable

Constructor Summary
CompareToolArgumentFormatter()
           
 
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 com.microsoft.tfs.core.externaltools.formatters.AbstractToolArgumentFormatter
formatArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareToolArgumentFormatter

public CompareToolArgumentFormatter()
Method Detail

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


© 2015 Microsoft. All rights reserved.