public class JavaSmartEnterProcessor extends SmartEnterProcessor
Modifier and Type | Class and Description |
---|---|
static class |
JavaSmartEnterProcessor.TooManyAttemptsException |
Constructor and Description |
---|
JavaSmartEnterProcessor() |
Modifier and Type | Method and Description |
---|---|
protected static EditorActionHandler |
getEnterHandler() |
protected PsiElement |
getStatementAtCaret(Editor editor,
PsiFile psiFile) |
protected static boolean |
isModified(Editor editor) |
protected void |
moveCaretInsideBracesIfAny(Editor editor,
PsiFile file) |
protected static void |
plainEnter(Editor editor) |
boolean |
process(Project project,
Editor editor,
PsiFile psiFile) |
boolean |
processAfterCompletion(Editor editor,
PsiFile psiFile) |
protected void |
reformat(PsiElement atCaret) |
void |
registerUnresolvedError(int offset) |
void |
setSkipEnter(boolean skipEnter) |
commit, commitDocument, createRangeMarker, isUncommited
public boolean process(Project project, Editor editor, PsiFile psiFile)
process
in class SmartEnterProcessor
public boolean processAfterCompletion(Editor editor, PsiFile psiFile)
processAfterCompletion
in class SmartEnterProcessor
protected void reformat(PsiElement atCaret) throws IncorrectOperationException
reformat
in class SmartEnterProcessor
IncorrectOperationException
protected PsiElement getStatementAtCaret(Editor editor, PsiFile psiFile)
getStatementAtCaret
in class SmartEnterProcessor
protected void moveCaretInsideBracesIfAny(Editor editor, PsiFile file) throws IncorrectOperationException
IncorrectOperationException
public void registerUnresolvedError(int offset)
public void setSkipEnter(boolean skipEnter)
protected static void plainEnter(Editor editor)
protected static EditorActionHandler getEnterHandler()
protected static boolean isModified(Editor editor)