comparison dwtx/jface/internal/text/revisions/RevisionPainter.d @ 136:6dcb0baaa031

Regex removal of throws decls, some instanceof
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:20:40 +0200
parents 65801ad2b265
children b6bad70d540a
comparison
equal deleted inserted replaced
135:65801ad2b265 136:6dcb0baaa031
1156 * 1156 *
1157 * @param lines the line range to convert 1157 * @param lines the line range to convert
1158 * @return the character offset range corresponding to <code>range</code> 1158 * @return the character offset range corresponding to <code>range</code>
1159 * @throws BadLocationException if the line range is not within the document bounds 1159 * @throws BadLocationException if the line range is not within the document bounds
1160 */ 1160 */
1161 private IRegion toCharRegion(ILineRange lines) throws BadLocationException { 1161 private IRegion toCharRegion(ILineRange lines) {
1162 IDocument document= fViewer.getDocument(); 1162 IDocument document= fViewer.getDocument();
1163 int offset= document.getLineOffset(lines.getStartLine()); 1163 int offset= document.getLineOffset(lines.getStartLine());
1164 int nextLine= end(lines); 1164 int nextLine= end(lines);
1165 int endOffset; 1165 int endOffset;
1166 if (nextLine >= document.getNumberOfLines()) 1166 if (nextLine >= document.getNumberOfLines())