Mercurial > projects > dwt-addons
comparison dwtx/jface/text/Document.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 | 7d818bd32d63 |
children | f8d52b926852 |
comparison
equal
deleted
inserted
replaced
135:65801ad2b265 | 136:6dcb0baaa031 |
---|---|
209 | 209 |
210 /* | 210 /* |
211 * @see dwtx.jface.text.IRepairableDocumentExtension#isLineInformationRepairNeeded(int, int, java.lang.String) | 211 * @see dwtx.jface.text.IRepairableDocumentExtension#isLineInformationRepairNeeded(int, int, java.lang.String) |
212 * @since 3.4 | 212 * @since 3.4 |
213 */ | 213 */ |
214 public bool isLineInformationRepairNeeded(int offset, int length, String text) throws BadLocationException { | 214 public bool isLineInformationRepairNeeded(int offset, int length, String text) { |
215 if ((0 > offset) || (0 > length) || (offset + length > getLength())) | 215 if ((0 > offset) || (0 > length) || (offset + length > getLength())) |
216 throw new BadLocationException(); | 216 throw new BadLocationException(); |
217 | 217 |
218 return isLineInformationRepairNeeded(text) || isLineInformationRepairNeeded(get(offset, length)); | 218 return isLineInformationRepairNeeded(text) || isLineInformationRepairNeeded(get(offset, length)); |
219 } | 219 } |