public class WhiteSpaceFormattingStrategyFactory
extends java.lang.Object
WhiteSpaceFormattingStrategy
.Modifier and Type | Method and Description |
---|---|
static java.util.Collection<WhiteSpaceFormattingStrategy> |
getAllStrategies() |
static WhiteSpaceFormattingStrategy |
getStrategy() |
static WhiteSpaceFormattingStrategy |
getStrategy(Editor editor)
Returns white space strategy to use for the document managed by the given editor.
|
static WhiteSpaceFormattingStrategy |
getStrategy(Language language)
Tries to return white space strategy to use for the given language.
|
public static WhiteSpaceFormattingStrategy getStrategy()
public static WhiteSpaceFormattingStrategy getStrategy(Language language) throws java.lang.IllegalStateException
language
- target languagejava.lang.IllegalStateException
- if white space strategies configuration is invalidpublic static java.util.Collection<WhiteSpaceFormattingStrategy> getAllStrategies()
public static WhiteSpaceFormattingStrategy getStrategy(Editor editor) throws java.lang.IllegalStateException
editor
- editor that manages target documentjava.lang.IllegalStateException
- if white space strategies configuration is invalid