/** * Returns the text regions covered by the given selection. * * @param selection the selection * @return the text regions corresponding to <code>selection</code> * @throws BadLocationException if accessing the document failed */ public IRegion[] getRanges(ISelection selection) throws BadLocationException { return getImplementation(selection).getRanges(selection); }
/** * Returns the text regions covered by the given selection. * * @param selection the selection * @return the text regions corresponding to <code>selection</code> * @throws BadLocationException if accessing the document failed */ public IRegion[] getRanges(ISelection selection) throws BadLocationException { return getImplementation(selection).getRanges(selection); }