public interface StripTrailingSpacesFilter
StripTrailingSpacesFilterFactory
Modifier and Type | Field and Description |
---|---|
static StripTrailingSpacesFilter |
ALL_LINES
The filter which does not put any restrictions on trailing spaces removal.
|
static StripTrailingSpacesFilter |
ENFORCED_REMOVAL
Forcibly allows all trailing spaces to be removed regardless of other filters.
|
static StripTrailingSpacesFilter |
NOT_ALLOWED
The filter which completely prohibits removing trailing spaces from a document regardless of other filters.
|
static StripTrailingSpacesFilter |
POSTPONED
Tells that strip trailing spaces is not currently possible since some conditions are not met for proper document processing.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isStripSpacesAllowedForLine(int line) |
static final StripTrailingSpacesFilter NOT_ALLOWED
static final StripTrailingSpacesFilter POSTPONED
static final StripTrailingSpacesFilter ALL_LINES
static final StripTrailingSpacesFilter ENFORCED_REMOVAL
boolean isStripSpacesAllowedForLine(int line)
line
- The document line. Lines are from 0 to Document.getLineCount()
- 1 inclusive.