Mercurial > projects > dwt-addons
diff dwtx/jface/text/formatter/ContentFormatter.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 | 51e6e63f930e |
children | b6bad70d540a |
line wrap: on
line diff
--- a/dwtx/jface/text/formatter/ContentFormatter.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/jface/text/formatter/ContentFormatter.d Sun Aug 24 02:20:40 2008 +0200 @@ -459,7 +459,7 @@ * @exception BadLocationException of region is invalid in the document * @since 3.0 */ - private TypedPosition[] getPartitioning(IRegion region) throws BadLocationException { + private TypedPosition[] getPartitioning(IRegion region) { ITypedRegion[] regions= TextUtilities.computePartitioning(fDocument, fPartitioning, region.getOffset(), region.getLength(), false); TypedPosition[] positions= new TypedPosition[regions.length]; @@ -804,7 +804,7 @@ * @exception BadLocationException if offset is invalid in document * @since 3.0 */ - private bool isLineStart(int offset) throws BadLocationException { + private bool isLineStart(int offset) { int start= fDocument.getLineOfOffset(offset); start= fDocument.getLineOffset(start); return (start is offset);