public class JavaEnterAfterUnmatchedBraceHandler extends EnterAfterUnmatchedBraceHandler
EnterHandlerDelegate.ResultEP_NAME| Constructor and Description |
|---|
JavaEnterAfterUnmatchedBraceHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateOffsetToInsertClosingBraceInsideElement(PsiElement element) |
boolean |
isApplicable(PsiFile file,
int caretOffset)
Checks that the text context is in responsibility of the handler.
|
calculateOffsetToInsertClosingBrace, formatCodeFragmentBetweenBraces, generateStringToInsert, getMaxRBraceCount, getRBraceOffset, getUnmatchedLBracesNumberBefore, insertRBraces, insertRBracesAtPosition, isAfterUnmatchedLBrace, isStopChar, preprocessEnterpostProcessEnterpublic boolean isApplicable(PsiFile file, int caretOffset)
EnterAfterUnmatchedBraceHandlerisApplicable in class EnterAfterUnmatchedBraceHandlerfile - target PSI filecaretOffset - target caret offsetprotected int calculateOffsetToInsertClosingBraceInsideElement(PsiElement element)
calculateOffsetToInsertClosingBraceInsideElement in class EnterAfterUnmatchedBraceHandler