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

java.lang.Object
  extended by com.microsoft.tfs.core.externaltools.formatters.AbstractToolArgumentFormatter
      extended by com.microsoft.tfs.core.externaltools.formatters.ViewToolArgumentFormatter

public class ViewToolArgumentFormatter
extends AbstractToolArgumentFormatter

Takes individual string arguments for a view tool and replaces the correct placeholders ("%1", etc.) in the an ExternalTool's arguments.

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

Constructor Summary
ViewToolArgumentFormatter()
           
 
Method Summary
 java.lang.String[] formatArguments(ExternalTool tool, java.lang.String filename)
          Formats the view 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

ViewToolArgumentFormatter

public ViewToolArgumentFormatter()
Method Detail

formatArguments

public java.lang.String[] formatArguments(ExternalTool tool,
                                          java.lang.String filename)
Formats the view arguments with the given substitutions.

Parameters:
tool - the ExternalTool to format arguments for (must not be null)
filename - the file to view (must not be null)
Returns:
this tool's configured arguments after the given strings are substituted


© 2015 Microsoft. All rights reserved.