public class EnterInStringLiteralHandler extends EnterHandlerDelegateAdapter
EnterHandlerDelegate.ResultEP_NAME| Constructor and Description |
|---|
EnterInStringLiteralHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected JavaLikeQuoteHandler |
getJavaLikeQuoteHandler(Editor editor,
PsiElement psiAtOffset) |
EnterHandlerDelegate.Result |
preprocessEnter(PsiFile file,
Editor editor,
Ref<java.lang.Integer> caretOffsetRef,
Ref<java.lang.Integer> caretAdvanceRef,
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> caretAdvanceRef, 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.caretAdvanceRef - 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.protected JavaLikeQuoteHandler getJavaLikeQuoteHandler(Editor editor, PsiElement psiAtOffset)