public abstract class EditorWriteActionHandler extends EditorActionHandler
EditorActionHandler
instances, which need to modify the document.
Implementations should override executeWriteAction(Editor, Caret, DataContext)
.Modifier | Constructor and Description |
---|---|
protected |
EditorWriteActionHandler() |
protected |
EditorWriteActionHandler(boolean runForEachCaret) |
Modifier and Type | Method and Description |
---|---|
void |
doExecute(Editor editor,
Caret caret,
DataContext dataContext)
Executes the action in the context of given caret.
|
void |
executeWriteAction(Editor editor,
Caret caret,
DataContext dataContext) |
void |
executeWriteAction(Editor editor,
DataContext dataContext)
Deprecated.
Use/override
executeWriteAction(Editor, Caret, DataContext)
instead. |
execute, execute, executeInCommand, getCommandGroupId, isEnabled, isEnabled, isEnabledForCaret, runForAllCarets
protected EditorWriteActionHandler()
protected EditorWriteActionHandler(boolean runForEachCaret)
public void doExecute(Editor editor, Caret caret, DataContext dataContext)
EditorActionHandler
doExecute
in class EditorActionHandler
editor
- the editor in which the action is invoked.caret
- the caret for which the action is performed at the moment, or null
if it's a 'one-off' action executed
without current contextdataContext
- the data context for the action.@Deprecated public void executeWriteAction(Editor editor, DataContext dataContext)
executeWriteAction(Editor, Caret, DataContext)
instead.public void executeWriteAction(Editor editor, Caret caret, DataContext dataContext)