public class EnterInJavadocParamDescriptionHandler extends EnterHandlerDelegateAdapter
EnterHandlerDelegate.ResultEP_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.
|
preprocessEnterpublic 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 EnterHandlerDelegatepostProcessEnter in class EnterHandlerDelegateAdapterfile - The PSI file associated with the document.editor - The editor.dataContext - The data context passed to the Enter handler.EnterHandlerDelegate.Result values.DataContext,
PsiDocumentManager