public abstract class LookupActionHandler extends EditorActionHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
LookupActionHandler.DownAction |
static class |
LookupActionHandler.DownHandler |
static class |
LookupActionHandler.LeftHandler |
static class |
LookupActionHandler.PageDownHandler |
static class |
LookupActionHandler.PageUpHandler |
static class |
LookupActionHandler.RightHandler |
static class |
LookupActionHandler.UpAction |
static class |
LookupActionHandler.UpHandler |
| Modifier and Type | Field and Description |
|---|---|
protected EditorActionHandler |
myOriginalHandler |
| Constructor and Description |
|---|
LookupActionHandler(EditorActionHandler originalHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
doExecute(Editor editor,
Caret caret,
DataContext dataContext)
Executes the action in the context of given caret.
|
boolean |
executeInCommand(Editor editor,
DataContext dataContext) |
protected abstract void |
executeInLookup(LookupImpl lookup,
DataContext context,
Caret 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.
|
execute, execute, getCommandGroupId, isEnabled, isEnabled, runForAllCaretsprotected final EditorActionHandler myOriginalHandler
public LookupActionHandler(EditorActionHandler originalHandler)
public boolean executeInCommand(Editor editor, DataContext dataContext)
executeInCommand in class EditorActionHandlerpublic void doExecute(Editor editor, Caret caret, DataContext dataContext)
EditorActionHandlerdoExecute in class EditorActionHandlereditor - 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 abstract void executeInLookup(LookupImpl lookup, DataContext context, Caret caret)
public boolean isEnabledForCaret(Editor editor, Caret caret, DataContext dataContext)
EditorActionHandlerisEnabledForCaret in class EditorActionHandler