public final class TrailingSpacesStripper extends java.lang.Object implements FileDocumentManagerListener
EP_NAME
Constructor and Description |
---|
TrailingSpacesStripper() |
Modifier and Type | Method and Description |
---|---|
void |
beforeAllDocumentsSaving()
Fired before processing FileDocumentManager.saveAllDocuments().
|
void |
beforeDocumentSaving(Document document)
NOTE: Vetoing facility is deprecated in this listener implement
FileDocumentSynchronizationVetoer instead. |
void |
clearLineModificationFlags(Document document) |
void |
documentDeleted(Document doc) |
static TrailingSpacesOptions |
getOptions(Document document) |
static boolean |
isEnabled(VirtualFile file) |
static void |
setEnabled(VirtualFile file,
boolean enabled) |
static boolean |
strip(Document document,
boolean inChangedLinesOnly,
boolean skipCaretLines) |
void |
unsavedDocumentsDropped() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beforeFileContentReload, fileContentLoaded, fileContentReloaded, fileWithNoDocumentChanged, unsavedDocumentDropped
public void beforeAllDocumentsSaving()
FileDocumentManagerListener
beforeAllDocumentsSaving
in interface FileDocumentManagerListener
public void beforeDocumentSaving(Document document)
FileDocumentManagerListener
FileDocumentSynchronizationVetoer
instead.beforeDocumentSaving
in interface FileDocumentManagerListener
public void clearLineModificationFlags(Document document)
public static boolean strip(Document document, boolean inChangedLinesOnly, boolean skipCaretLines)
public void documentDeleted(Document doc)
public void unsavedDocumentsDropped()
unsavedDocumentsDropped
in interface FileDocumentManagerListener
public static void setEnabled(VirtualFile file, boolean enabled)
public static boolean isEnabled(VirtualFile file)
public static TrailingSpacesOptions getOptions(Document document)