/** Find line object in the line set corresponding to original line number. * That is, finds the line in the current document which originally had the indicated line number. * If there have been modifications of that line, find one as close as possible. * * @param line number of the line * @return line object * @exception IndexOutOfBoundsException if <code>line</code> is an invalid index for the original set of lines */ public Line getOriginal (int line) throws IndexOutOfBoundsException { if (delegate != null) { return delegate.getOriginal (line); } return getCurrent (line); }
/** Find line object in the line set corresponding to original line number. * That is, finds the line in the current document which originally had the indicated line number. * If there have been modifications of that line, find one as close as possible. * * @param line number of the line * @return line object * @exception IndexOutOfBoundsException if <code>line</code> is an invalid index for the original set of lines */ public Line getOriginal (int line) throws IndexOutOfBoundsException { if (delegate != null) { return delegate.getOriginal (line); } return getCurrent (line); }
/** Find line object in the line set corresponding to original line number. * That is, finds the line in the current document which originally had the indicated line number. * If there have been modifications of that line, find one as close as possible. * * @param line number of the line * @return line object * @exception IndexOutOfBoundsException if <code>line</code> is an invalid index for the original set of lines */ public Line getOriginal(int line) throws IndexOutOfBoundsException { if (delegate != null) { return delegate.getOriginal(line); } return getCurrent(line); }