public abstract class BaseMoveHandler extends EditorWriteActionHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isDown |
| Constructor and Description |
|---|
BaseMoveHandler(boolean down) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeWriteAction(Editor editor,
Caret caret,
DataContext dataContext) |
protected abstract com.intellij.codeInsight.editorActions.moveUpDown.MoverWrapper |
getSuitableMover(Editor editor,
PsiFile file) |
boolean |
isEnabledForCaret(Editor editor,
Caret caret,
DataContext dataContext)
Implementations can override this method to define whether handler is enabled for a specific caret in a given editor.
|
doExecute, executeWriteActionexecute, execute, executeInCommand, getCommandGroupId, isEnabled, isEnabled, runForAllCaretspublic void executeWriteAction(Editor editor, Caret caret, DataContext dataContext)
executeWriteAction in class EditorWriteActionHandlerpublic boolean isEnabledForCaret(Editor editor, Caret caret, DataContext dataContext)
EditorActionHandlerisEnabledForCaret in class EditorActionHandler