public class LineMover extends StatementUpDownMover
StatementUpDownMover.MoveInfo
STATEMENT_UP_DOWN_MOVER_EP
Constructor and Description |
---|
LineMover() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkAvailable(Editor editor,
PsiFile file,
StatementUpDownMover.MoveInfo info,
boolean down) |
static boolean |
checkLineMoverAvailable(Editor editor,
StatementUpDownMover.MoveInfo info,
boolean down) |
protected static Pair<PsiElement,PsiElement> |
getElementRange(PsiElement parent,
PsiElement element1,
PsiElement element2) |
afterMove, beforeMove, firstNonWhiteElement, firstNonWhiteElement, getElementRange, getLineRangeFromSelection, getLineStartSafeOffset
public boolean checkAvailable(Editor editor, PsiFile file, StatementUpDownMover.MoveInfo info, boolean down)
checkAvailable
in class StatementUpDownMover
public static boolean checkLineMoverAvailable(Editor editor, StatementUpDownMover.MoveInfo info, boolean down)
protected static Pair<PsiElement,PsiElement> getElementRange(PsiElement parent, PsiElement element1, PsiElement element2)