ILineRange nextWidgetRange= null;
ILineRange last= null;
List ranges= fFocusRevision.getRegions();
if (up) {
for (Iterator it= ranges.iterator(); it.hasNext();) {
RevisionRange range= (RevisionRange) it.next();
ILineRange widgetRange= modelLinesToWidgetLines(range);
if (contains(range, documentHoverLine)) {
nextWidgetRange= last;
break;
}
if (widgetRange != null)
last= widgetRange;
}
} else {
for (ListIterator it= ranges.listIterator(ranges.size()); it.hasPrevious();) {
RevisionRange range= (RevisionRange) it.previous();
ILineRange widgetRange= modelLinesToWidgetLines(range);
if (contains(range, documentHoverLine)) {
nextWidgetRange= last;
break;
}