public abstract class StatementUpDownMover
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StatementUpDownMover.MoveInfo |
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<StatementUpDownMover> |
STATEMENT_UP_DOWN_MOVER_EP |
Constructor and Description |
---|
StatementUpDownMover() |
Modifier and Type | Method and Description |
---|---|
void |
afterMove(Editor editor,
PsiFile file,
StatementUpDownMover.MoveInfo info,
boolean down) |
void |
beforeMove(Editor editor,
StatementUpDownMover.MoveInfo info,
boolean down) |
abstract boolean |
checkAvailable(Editor editor,
PsiFile file,
StatementUpDownMover.MoveInfo info,
boolean down) |
protected static PsiElement |
firstNonWhiteElement(int offset,
PsiFile file,
boolean lookRight) |
protected static PsiElement |
firstNonWhiteElement(PsiElement element,
boolean lookRight) |
protected static Pair<PsiElement,PsiElement> |
getElementRange(Editor editor,
PsiFile file,
LineRange range) |
protected static LineRange |
getLineRangeFromSelection(Editor editor) |
static int |
getLineStartSafeOffset(Document document,
int line) |
public static final ExtensionPointName<StatementUpDownMover> STATEMENT_UP_DOWN_MOVER_EP
public abstract boolean checkAvailable(Editor editor, PsiFile file, StatementUpDownMover.MoveInfo info, boolean down)
public void beforeMove(Editor editor, StatementUpDownMover.MoveInfo info, boolean down)
public void afterMove(Editor editor, PsiFile file, StatementUpDownMover.MoveInfo info, boolean down)
public static int getLineStartSafeOffset(Document document, int line)
protected static Pair<PsiElement,PsiElement> getElementRange(Editor editor, PsiFile file, LineRange range)
protected static PsiElement firstNonWhiteElement(int offset, PsiFile file, boolean lookRight)
protected static PsiElement firstNonWhiteElement(PsiElement element, boolean lookRight)