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, expandToWholeLinesWithBlanks
public boolean canSelect(PsiElement e)
canSelect
in interface ExtendWordSelectionHandler
canSelect
in class AbstractWordSelectioner
public java.util.List<TextRange> select(PsiElement e, java.lang.CharSequence editorText, int cursorOffset, Editor editor)
select
in interface ExtendWordSelectionHandler
select
in class AbstractWordSelectioner
public int getMinimalTextRangeLength(PsiElement element, java.lang.CharSequence text, int cursorOffset)
ExtendWordSelectionHandlerBase
getMinimalTextRangeLength
in class ExtendWordSelectionHandlerBase
element
- 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)