public class KeepTrailingSpacesOnEmptyLinesFilterFactory extends StripTrailingSpacesFilterFactory
EXTENSION_POINT| Constructor and Description |
|---|
KeepTrailingSpacesOnEmptyLinesFilterFactory() |
| Modifier and Type | Method and Description |
|---|---|
StripTrailingSpacesFilter |
createFilter(Project project,
Document document)
Creates a filter which may restrict trailing spaces removal.
|
public KeepTrailingSpacesOnEmptyLinesFilterFactory()
public StripTrailingSpacesFilter createFilter(Project project, Document document)
StripTrailingSpacesFilterFactorycreateFilter in class StripTrailingSpacesFilterFactoryproject - The current project or null if there is no project context.document - The document to be processed.StripTrailingSpacesFilter.NOT_ALLOWED No stripping allowed. The IDE will not try to strip any whitespace at all in this case.StripTrailingSpacesFilter.POSTPONED The stripping is not possible at the moment. For example, the caret
is in the way and the "Settings|General|Editor|Allow caret after end of the line" is off. In this case, the IDE will try to restart
the stripping later.StripTrailingSpacesFilter.ALL_LINES Allow stripping with no restrictions. Return this value by default.