public abstract class PsiBasedStripTrailingSpacesFilter extends java.lang.Object implements StripTrailingSpacesFilter
Modifier and Type | Class and Description |
---|---|
static class |
PsiBasedStripTrailingSpacesFilter.Factory |
ALL_LINES, ENFORCED_REMOVAL, NOT_ALLOWED, POSTPONED
Modifier | Constructor and Description |
---|---|
protected |
PsiBasedStripTrailingSpacesFilter(Document document) |
Modifier and Type | Method and Description |
---|---|
protected void |
disableRange(TextRange range,
boolean includeEndLine) |
static Language |
getDocumentLanguage(Document document) |
boolean |
isStripSpacesAllowedForLine(int line) |
protected abstract void |
process(PsiFile psiFile) |
protected PsiBasedStripTrailingSpacesFilter(Document document)
public boolean isStripSpacesAllowedForLine(int line)
isStripSpacesAllowedForLine
in interface StripTrailingSpacesFilter
line
- The document line. Lines are from 0 to Document.getLineCount()
- 1 inclusive.protected abstract void process(PsiFile psiFile)
protected final void disableRange(TextRange range, boolean includeEndLine)