public abstract class LfeBaseEditorActionHandler extends EditorActionHandler
Constructor and Description |
---|
LfeBaseEditorActionHandler(EditorActionHandler originalHandler) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(Editor editor,
Caret caret,
DataContext dataContext)
Executes the action in the context of given caret.
|
protected abstract void |
doExecuteInLfe(LargeFileEditor largeFileEditor,
Editor editor,
Caret caret,
DataContext dataContext) |
protected EditorActionHandler |
getOriginalHandler() |
protected 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.
|
protected abstract boolean |
isEnabledInLfe(LargeFileEditor largeFileEditor,
Editor editor,
Caret caret,
DataContext dataContext) |
execute, execute, executeInCommand, getCommandGroupId, isEnabled, isEnabled, runForAllCarets
public LfeBaseEditorActionHandler(EditorActionHandler originalHandler)
protected final 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.protected final boolean isEnabledForCaret(Editor editor, Caret caret, DataContext dataContext)
EditorActionHandler
isEnabledForCaret
in class EditorActionHandler
protected final EditorActionHandler getOriginalHandler()
protected abstract void doExecuteInLfe(LargeFileEditor largeFileEditor, Editor editor, Caret caret, DataContext dataContext)
protected abstract boolean isEnabledInLfe(LargeFileEditor largeFileEditor, Editor editor, Caret caret, DataContext dataContext)