getBetweenTimeout(oper).sleep();
}
private final void moveCaret(ComponentOperator oper, GoAndBackKey key, int position, int preModifiers) {
int newDiff = difference(position, getCaretPosition(oper));
int oldDiff = newDiff;
QueueTool qTool = new QueueTool();
qTool.setOutput(oper.getOutput().createErrorOutput());
while(key.getDirection() * (position - getCaretPosition(oper)) > 0) {
oldDiff = newDiff;
push(oper, key, preModifiers);
qTool.waitEmpty();
newDiff = difference(position, getCaretPosition(oper));
if(newDiff == oldDiff) {
return;
}
};