public int getLineEnd(int line) throws CoreException { if (fDocument != null) { try { IRegion region= fDocument.getLineInformation(line); return region.getOffset() + region.getLength(); } catch (BadLocationException e) { String message= "Illegal line: " + line; //$NON-NLS-1$ throw new CoreException(createError(DOCUMENT_ERROR, message, e)); } } return getScanner().getLineEnd(line); }
public int getLineEnd(int line) throws CoreException { if (fDocument != null) { try { IRegion region= fDocument.getLineInformation(line); return region.getOffset() + region.getLength(); } catch (BadLocationException e) { String message= "Illegal line: " + line; //$NON-NLS-1$ throw new CoreException(createError(DOCUMENT_ERROR, message, e)); } } return getScanner().getLineEnd(line); }
public int getLineEnd(int line) throws CoreException { if (fDocument != null) { try { IRegion region= fDocument.getLineInformation(line); return region.getOffset() + region.getLength(); } catch (BadLocationException e) { String message= "Illegal line: " + line; //$NON-NLS-1$ throw new CoreException(createError(DOCUMENT_ERROR, message, e)); } } return getScanner().getLineEnd(line); }