diff dwtx/jface/text/source/AnnotationBarHoverManager.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
line wrap: on
line diff
--- a/dwtx/jface/text/source/AnnotationBarHoverManager.d	Sun Aug 24 01:52:31 2008 +0200
+++ b/dwtx/jface/text/source/AnnotationBarHoverManager.d	Sun Aug 24 02:20:40 2008 +0200
@@ -556,7 +556,7 @@
      * @return the corresponding character range
      * @throws BadLocationException in case the given line range is invalid
      */
-    private IRegion convertToRegion(ILineRange lineRange) throws BadLocationException {
+    private IRegion convertToRegion(ILineRange lineRange)  {
         IDocument document= fSourceViewer.getDocument();
         int startOffset= document.getLineOffset(lineRange.getStartLine());
         int endLine= lineRange.getStartLine() + Math.max(0, lineRange.getNumberOfLines() - 1);
@@ -574,7 +574,7 @@
      * @return the region of the set that contains the line
      * @throws BadLocationException in case line is invalid
      */
-    private IRegion findRegionContainingLine(IRegion[] regions, int line) throws BadLocationException {
+    private IRegion findRegionContainingLine(IRegion[] regions, int line)  {
         IDocument document= fSourceViewer.getDocument();
         IRegion lineInfo= document.getLineInformation(line);
         for (int i= 0; i < regions.length; i++) {
@@ -591,7 +591,7 @@
      * @return the corresponding line range
      * @throws BadLocationException in case the given region in invalid
      */
-    private ILineRange convertToLineRange(IRegion region) throws BadLocationException {
+    private ILineRange convertToLineRange(IRegion region)  {
         IDocument document= fSourceViewer.getDocument();
         int startLine= document.getLineOfOffset(region.getOffset());
         int endLine= document.getLineOfOffset(region.getOffset() + region.getLength());
@@ -676,7 +676,7 @@
      * @return the line number relative to the viewer's visible region
      * @throws BadLocationException if <code>line</code> is not valid in the viewer's document
      */
-    private int getWidgetLineNumber(int line) throws BadLocationException {
+    private int getWidgetLineNumber(int line)  {
         if (fSourceViewer instanceof ITextViewerExtension5) {
             ITextViewerExtension5 extension= cast(ITextViewerExtension5) fSourceViewer;
             return extension.modelLine2WidgetLine(line);