Package org.eclipse.cdt.core
Class ToolFactory
java.lang.Object
org.eclipse.cdt.core.ToolFactory
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodeFormattercreateCodeFormatter(Map<String, ?> options) Creates an instance of a code formatter.static CodeFormattercreateDefaultCodeFormatter(Map<String, ?> options) Creates an instance of the built-in code formatter.
-
Method Details
-
createCodeFormatter
Creates 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 inDefaultCodeFormatterConstants. If set tonull, then use the current settings fromCCorePlugin.getOptions().- Returns:
- an instance of either a contributed the built-in code formatter
- See Also:
-
createDefaultCodeFormatter
Creates 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 inDefaultCodeFormatterConstants. If set tonull, then use the current settings fromCCorePlugin.getOptions().- Returns:
- an instance of the built-in code formatter
- See Also:
-