public class XmlMover extends LineMover
StatementUpDownMover.MoveInfo
STATEMENT_UP_DOWN_MOVER_EP
Constructor and Description |
---|
XmlMover() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkAvailable(Editor editor,
PsiFile file,
StatementUpDownMover.MoveInfo info,
boolean down) |
protected XmlElement |
getDestinationElement(PsiFile file,
XmlElement sourceElement,
int offset,
boolean forward) |
protected static XmlElement |
getMeaningfulElementAtOffset(PsiFile file,
int offset,
boolean forward,
Condition<? super PsiElement> condition) |
protected XmlElement |
getSourceElement(PsiFile file,
int offset,
boolean forward) |
protected TextRange |
getTagContentRange(XmlTag parent) |
checkLineMoverAvailable, getElementRange
afterMove, beforeMove, firstNonWhiteElement, firstNonWhiteElement, getElementRange, getLineRangeFromSelection, getLineStartSafeOffset
public boolean checkAvailable(Editor editor, PsiFile file, StatementUpDownMover.MoveInfo info, boolean down)
checkAvailable
in class LineMover
protected XmlElement getSourceElement(PsiFile file, int offset, boolean forward)
protected XmlElement getDestinationElement(PsiFile file, XmlElement sourceElement, int offset, boolean forward)
protected static XmlElement getMeaningfulElementAtOffset(PsiFile file, int offset, boolean forward, Condition<? super PsiElement> condition)