public class BackspaceHandler extends EditorWriteActionHandler
| Modifier and Type | Field and Description |
|---|---|
protected EditorActionHandler |
myOriginalHandler |
| Constructor and Description |
|---|
BackspaceHandler(EditorActionHandler originalHandler) |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteToTargetPosition(Editor editor,
LogicalPosition pos) |
void |
executeWriteAction(Editor editor,
Caret caret,
DataContext dataContext) |
static LogicalPosition |
getBackspaceUnindentPosition(PsiFile file,
Editor editor) |
static char |
getRightChar(char c) |
protected boolean |
handleBackspace(Editor editor,
Caret caret,
DataContext dataContext,
boolean toWordStart) |
static boolean |
isWhitespaceBeforeCaret(Editor editor) |
doExecute, executeWriteActionexecute, execute, executeInCommand, getCommandGroupId, isEnabled, isEnabled, isEnabledForCaret, runForAllCaretsprotected final EditorActionHandler myOriginalHandler
public BackspaceHandler(EditorActionHandler originalHandler)
public void executeWriteAction(Editor editor, Caret caret, DataContext dataContext)
executeWriteAction in class EditorWriteActionHandlerprotected boolean handleBackspace(Editor editor, Caret caret, DataContext dataContext, boolean toWordStart)
public static char getRightChar(char c)
public static LogicalPosition getBackspaceUnindentPosition(PsiFile file, Editor editor)
public static void deleteToTargetPosition(Editor editor, LogicalPosition pos)
public static boolean isWhitespaceBeforeCaret(Editor editor)