org.eclipse.cdt.core
Class ToolFactory

java.lang.Object
  extended by org.eclipse.cdt.core.ToolFactory

public class ToolFactory
extends java.lang.Object


Constructor Summary
ToolFactory()
           
 
Method Summary
static CodeFormatter createCodeFormatter(java.util.Map options)
          Create an instance of a code formatter.
static CodeFormatter createDefaultCodeFormatter(java.util.Map options)
          Create an instance of the built-in code formatter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolFactory

public ToolFactory()
Method Detail

createCodeFormatter

public static CodeFormatter createCodeFormatter(java.util.Map options)
Create an instance of a code formatter. A code formatter implementation can be contributed via the extension point "org.eclipse.cdt.core.CodeFormatter". If unable to find a registered extension, the factory will default to using the default code formatter.

Parameters:
options - - the options map to use for formatting with the code formatter. Recognized options are documented on DefaultCodeFormatterConstants. If set to null, then use the current settings from CCorePlugin.getOptions().
Returns:
an instance of either a contributed the built-in code formatter
See Also:
CodeFormatter, DefaultCodeFormatterConstants, CCorePlugin.getOptions()

createDefaultCodeFormatter

public static CodeFormatter createDefaultCodeFormatter(java.util.Map options)
Create an instance of the built-in code formatter.

Parameters:
options - - the options map to use for formatting with the default code formatter. Recognized options are documented on DefaultCodeFormatterConstants. If set to null, then use the current settings from CCorePlugin.getOptions().
Returns:
an instance of the built-in code formatter
See Also:
CodeFormatter, DefaultCodeFormatterConstants, CCorePlugin.getOptions()