public class HtmlSelectioner extends AbstractWordSelectioner
EP_NAME| Constructor and Description |
|---|
HtmlSelectioner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addClassAttributeRanges(java.util.List<? super TextRange> result,
Editor editor,
int cursorOffset,
java.lang.CharSequence editorText,
XmlAttributeValue attributeValue) |
boolean |
canSelect(PsiElement e) |
protected java.lang.String |
getClassAttributeName() |
int |
getMinimalTextRangeLength(PsiElement element,
java.lang.CharSequence text,
int cursorOffset)
Returns minimal selection length for given element.
|
java.util.List<TextRange> |
select(PsiElement e,
java.lang.CharSequence editorText,
int cursorOffset,
Editor editor) |
expandToWholeLine, expandToWholeLine, expandToWholeLinesWithBlankspublic boolean canSelect(PsiElement e)
canSelect in interface ExtendWordSelectionHandlercanSelect in class AbstractWordSelectionerpublic java.util.List<TextRange> select(PsiElement e, java.lang.CharSequence editorText, int cursorOffset, Editor editor)
select in interface ExtendWordSelectionHandlerselect in class AbstractWordSelectionerpublic int getMinimalTextRangeLength(PsiElement element, java.lang.CharSequence text, int cursorOffset)
ExtendWordSelectionHandlerBasegetMinimalTextRangeLength in class ExtendWordSelectionHandlerBaseelement - element at carettext - text in editorcursorOffset - current caret offset in editorprotected java.lang.String getClassAttributeName()
public static void addClassAttributeRanges(java.util.List<? super TextRange> result, Editor editor, int cursorOffset, java.lang.CharSequence editorText, XmlAttributeValue attributeValue)