public class CloneCaretActionHandler extends EditorActionHandler
Constructor and Description |
---|
CloneCaretActionHandler(boolean above) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(Editor editor,
Caret targetCaret,
DataContext dataContext)
Executes the action in the context of given caret.
|
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.
|
void |
setRepeatedInvocation(boolean value) |
execute, execute, executeInCommand, getCommandGroupId, isEnabled, isEnabled, runForAllCarets
public boolean isEnabledForCaret(Editor editor, Caret caret, DataContext dataContext)
EditorActionHandler
isEnabledForCaret
in class EditorActionHandler
protected void doExecute(Editor editor, Caret targetCaret, DataContext dataContext)
EditorActionHandler
doExecute
in class EditorActionHandler
editor
- the editor in which the action is invoked.targetCaret
- 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.public void setRepeatedInvocation(boolean value)