int line = rootElem.getElementIndex(view.getStartOffset()); int lineWithAnno = annos.getNextLineWithAnnotation(line); lineWithAnno = annos.getNextLineWithAnnotation(line+1);
int lineWithAnno = annos.getNextLineWithAnnotation(line); lineWithAnno = annos.getNextLineWithAnnotation(line + 1);
int lineWithAnno = annos.getNextLineWithAnnotation(rootElem.getElementIndex(startPos)); Rectangle rec = textUI.modelToView(component, rootView.getView(startViewIndex).getStartOffset()); int y = (rec == null) ? 0 : rec.y;