public class EnterInBlockCommentHandler extends EnterHandlerDelegateAdapter
EnterHandlerDelegate.ResultEP_NAME| Constructor and Description |
|---|
EnterInBlockCommentHandler() |
| Modifier and Type | Method and Description |
|---|---|
EnterHandlerDelegate.Result |
preprocessEnter(PsiFile file,
Editor editor,
Ref<java.lang.Integer> caretOffsetRef,
Ref<java.lang.Integer> caretAdvance,
DataContext dataContext,
EditorActionHandler originalHandler)
Called before the actual Enter processing is done.
|
postProcessEnterpublic EnterHandlerDelegate.Result preprocessEnter(PsiFile file, Editor editor, Ref<java.lang.Integer> caretOffsetRef, Ref<java.lang.Integer> caretAdvance, DataContext dataContext, EditorActionHandler originalHandler)
EnterHandlerDelegate
PsiDocumentManager.getInstance(file.getProject()).commitDocument(editor.getDocument);
preprocessEnter in interface EnterHandlerDelegatepreprocessEnter in class EnterHandlerDelegateAdapterfile - The PSI file associated with the document.editor - The editor.caretOffsetRef - Indicates a place where line break is to be inserted (it's a caret position initially). Method implementation
can change this value to adjust target line break position.caretAdvance - A reference to the number of columns by which the caret must be moved forward.dataContext - The data context passed to the enter handler.originalHandler - The original handler.EnterHandlerDelegate.Result values.