public abstract class TypedAction
extends java.lang.Object
Constructor and Description |
---|
TypedAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(Editor editor,
char charTyped,
DataContext dataContext) |
void |
beforeActionPerformed(Editor editor,
char c,
DataContext context,
ActionPlan plan) |
TypedActionHandler |
getHandler()
Gets the current typing handler.
|
static TypedAction |
getInstance() |
TypedActionHandler |
getRawHandler()
Gets the current 'raw' typing handler.
|
TypedActionHandler |
setupHandler(TypedActionHandler handler)
Deprecated.
Use <typedHandler> extension point for registering typing handlers
|
TypedActionHandler |
setupRawHandler(TypedActionHandler handler)
Replaces current 'raw' typing handler with the specified handler.
|
public static TypedAction getInstance()
public TypedActionHandler getHandler()
@Deprecated public TypedActionHandler setupHandler(TypedActionHandler handler)
handler
- the handler to set.public TypedActionHandler getRawHandler()
setupRawHandler(TypedActionHandler)
public TypedActionHandler setupRawHandler(TypedActionHandler handler)
'Raw' handler is a handler directly invoked by the code which handles typing in editor. Default 'raw' handler performs some generic logic that has to be done on typing (like checking whether file has write access, creating a command instance for undo subsystem, initiating write action, etc), but delegates to 'normal' handler for actual typing logic.
handler
- the handler to set.getRawHandler()
,
getHandler()
,
setupHandler(TypedActionHandler)
public void beforeActionPerformed(Editor editor, char c, DataContext context, ActionPlan plan)
public final void actionPerformed(Editor editor, char charTyped, DataContext dataContext)