public class JavadocTypedHandler extends TypedHandlerDelegate
TypedHandlerDelegate.ResultEP_NAME| Constructor and Description |
|---|
JavadocTypedHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static java.lang.String |
getTagName(java.lang.CharSequence text,
int afterTagOffset)
Tries to derive start tag name assuming that given offset points to position just after
'>' symbol. |
beforeCharTyped, beforeSelectionRemoved, checkAutoPopup, isImmediatePaintingEnabledpublic TypedHandlerDelegate.Result charTyped(char c, Project project, Editor editor, PsiFile file)
TypedHandlerDelegatecharTyped in class TypedHandlerDelegatepublic static java.lang.String getTagName(java.lang.CharSequence text,
int afterTagOffset)
'>' symbol.
Is expected to return null when offset is not located just after start tag, e.g. the following situations:
'>' symbol (surrounded by white spaces); <mytag><mytag>[caret]; <p/>[caret];text - target textafterTagOffset - offset that points afternull otherwise