public abstract class TypedHandlerDelegate
extends java.lang.Object
Note that PsiFile
passed to handler's methods isn't guaranteed to be in sync with the document at the time of invocation
(due to performance considerations). PsiDocumentManager.commitDocument(Document)
should be invoked explicitly,
if an up-to-date PSI is required.
Modifier and Type | Class and Description |
---|---|
static class |
TypedHandlerDelegate.Result |
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<TypedHandlerDelegate> |
EP_NAME |
Constructor and Description |
---|
TypedHandlerDelegate() |
Modifier and Type | Method and Description |
---|---|
TypedHandlerDelegate.Result |
beforeCharTyped(char c,
Project project,
Editor editor,
PsiFile file,
FileType fileType)
Called before the specified character typed by the user is inserted in the editor.
|
TypedHandlerDelegate.Result |
beforeSelectionRemoved(char c,
Project project,
Editor editor,
PsiFile file)
Called before selected text is deleted.
|
TypedHandlerDelegate.Result |
charTyped(char c,
Project project,
Editor editor,
PsiFile file)
Called after the specified character typed by the user has been inserted in the editor.
|
TypedHandlerDelegate.Result |
checkAutoPopup(char charTyped,
Project project,
Editor editor,
PsiFile file)
If the specified character triggers auto-popup, schedules the auto-popup appearance.
|
boolean |
isImmediatePaintingEnabled(Editor editor,
char c,
DataContext context) |
public static final ExtensionPointName<TypedHandlerDelegate> EP_NAME
public TypedHandlerDelegate.Result checkAutoPopup(char charTyped, Project project, Editor editor, PsiFile file)
public TypedHandlerDelegate.Result beforeSelectionRemoved(char c, Project project, Editor editor, PsiFile file)
public TypedHandlerDelegate.Result beforeCharTyped(char c, Project project, Editor editor, PsiFile file, FileType fileType)
public TypedHandlerDelegate.Result charTyped(char c, Project project, Editor editor, PsiFile file)
public boolean isImmediatePaintingEnabled(Editor editor, char c, DataContext context)