public interface PsiDocumentListener
Modifier and Type | Field and Description |
---|---|
static Topic<PsiDocumentListener> |
TOPIC |
Modifier and Type | Method and Description |
---|---|
void |
documentCreated(Document document,
PsiFile psiFile,
Project project)
Called when a document instance is created for a file.
|
default void |
fileCreated(PsiFile file,
Document document)
Called when a file instance is created for a document.
|
static final Topic<PsiDocumentListener> TOPIC
void documentCreated(Document document, PsiFile psiFile, Project project)
document
- the created document instance.psiFile
- the file for which the document was created.PsiDocumentManager.getDocument(PsiFile)
default void fileCreated(PsiFile file, Document document)
file
- the created file instance.document
- the document for which the file was created.PsiDocumentManager.getDocument(PsiFile)