public abstract class StripTrailingSpacesFilterFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<StripTrailingSpacesFilterFactory> |
EXTENSION_POINT |
Constructor and Description |
---|
StripTrailingSpacesFilterFactory() |
Modifier and Type | Method and Description |
---|---|
abstract StripTrailingSpacesFilter |
createFilter(Project project,
Document document)
Creates a filter which may restrict trailing spaces removal.
|
public static final ExtensionPointName<StripTrailingSpacesFilterFactory> EXTENSION_POINT
public abstract StripTrailingSpacesFilter createFilter(Project project, Document document)
project
- 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.