/** * Returns the number of lines touched by <code>selection</code>. Note that for linear * selections, this is the number of contained delimiters plus 1. * * @param selection the selection * @return the number of lines touched by <code>selection</code> * @throws BadLocationException if accessing the document failed */ public int getCoveredLines(ISelection selection) throws BadLocationException { return getImplementation(selection).getCoveredLines(selection); }
/** * Returns the number of lines touched by <code>selection</code>. Note that for linear * selections, this is the number of contained delimiters plus 1. * * @param selection the selection * @return the number of lines touched by <code>selection</code> * @throws BadLocationException if accessing the document failed */ public int getCoveredLines(ISelection selection) throws BadLocationException { return getImplementation(selection).getCoveredLines(selection); }