public class JavaEnterAfterUnmatchedBraceHandler extends EnterAfterUnmatchedBraceHandler
EnterHandlerDelegate.Result
EP_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, preprocessEnter
postProcessEnter
public boolean isApplicable(PsiFile file, int caretOffset)
EnterAfterUnmatchedBraceHandler
isApplicable
in class EnterAfterUnmatchedBraceHandler
file
- target PSI filecaretOffset
- target caret offsetprotected int calculateOffsetToInsertClosingBraceInsideElement(PsiElement element)
calculateOffsetToInsertClosingBraceInsideElement
in class EnterAfterUnmatchedBraceHandler