public class EnterInJavadocParamDescriptionHandler extends EnterHandlerDelegateAdapter
EnterHandlerDelegate.Result
EP_NAME
Constructor and Description |
---|
EnterInJavadocParamDescriptionHandler() |
Modifier and Type | Method and Description |
---|---|
EnterHandlerDelegate.Result |
postProcessEnter(PsiFile file,
Editor editor,
DataContext dataContext)
Called at the end of Enter handling after line feed insertion and indentation adjustment.
|
preprocessEnter
public EnterInJavadocParamDescriptionHandler()
public EnterHandlerDelegate.Result postProcessEnter(PsiFile file, Editor editor, DataContext dataContext)
EnterHandlerDelegate
Important Note: A document associated with the editor has modifications which are not reflected yet in the PSI file. If any
operations with PSI are needed including a search for PSI elements, the document must be committed first to update the PSI.
For example:
PsiDocumentManager.getInstance(file.getProject()).commitDocument(editor.getDocument);
postProcessEnter
in interface EnterHandlerDelegate
postProcessEnter
in class EnterHandlerDelegateAdapter
file
- The PSI file associated with the document.editor
- The editor.dataContext
- The data context passed to the Enter handler.EnterHandlerDelegate.Result
values.
DataContext
,
PsiDocumentManager