diff dwtx/jface/text/TreeLineTracker.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 26688fec6d23
line wrap: on
line diff
--- a/dwtx/jface/text/TreeLineTracker.d	Sun Aug 24 01:52:31 2008 +0200
+++ b/dwtx/jface/text/TreeLineTracker.d	Sun Aug 24 02:20:40 2008 +0200
@@ -365,7 +365,7 @@
      * @return the line starting at or containing <code>offset</code>
      * @throws BadLocationException if the offset is invalid
      */
-    private Node nodeByOffset(final int offset) throws BadLocationException {
+    private Node nodeByOffset(final int offset)  {
         /*
          * Works for any binary search tree.
          */
@@ -403,7 +403,7 @@
      * @return the line number starting at or containing <code>offset</code>
      * @throws BadLocationException if the offset is invalid
      */
-    private int lineByOffset(final int offset) throws BadLocationException {
+    private int lineByOffset(final int offset)  {
         /*
          * Works for any binary search tree.
          */
@@ -438,7 +438,7 @@
      * @return the line with the given line number
      * @throws BadLocationException if the line is invalid
      */
-    private Node nodeByLine(final int line) throws BadLocationException {
+    private Node nodeByLine(final int line)  {
         /*
          * Works for any binary search tree.
          */
@@ -472,7 +472,7 @@
      * @return the line offset with the given line number
      * @throws BadLocationException if the line is invalid
      */
-    private int offsetByLine(final int line) throws BadLocationException {
+    private int offsetByLine(final int line)  {
         /*
          * Works for any binary search tree.
          */
@@ -747,7 +747,7 @@
     /*
      * @see dwtx.jface.text.ILineTracker#replace(int, int, java.lang.String)
      */
-    public final void replace(int offset, int length, String text) throws BadLocationException {
+    public final void replace(int offset, int length, String text)  {
         if cast(ASSERT) checkTree();
         
         // Inlined nodeByOffset as we need both node and offset
@@ -1203,7 +1203,7 @@
      * @param offset the illegal character or line offset that caused the exception
      * @throws BadLocationException always
      */
-    private void fail(int offset) throws BadLocationException {
+    private void fail(int offset)  {
         throw new BadLocationException();
     }
     
@@ -1220,7 +1220,7 @@
     /*
      * @see dwtx.jface.text.ILineTracker#getLineDelimiter(int)
      */
-    public final String getLineDelimiter(int line) throws BadLocationException {
+    public final String getLineDelimiter(int line)  {
         Node node= nodeByLine(line);
         return node.delimiter is NO_DELIM ? null : node.delimiter;
     }
@@ -1257,7 +1257,7 @@
     /*
      * @see dwtx.jface.text.ILineTracker#getNumberOfLines(int, int)
      */
-    public final int getNumberOfLines(int offset, int length) throws BadLocationException {
+    public final int getNumberOfLines(int offset, int length)  {
         if (length is 0)
             return 1;
 
@@ -1270,14 +1270,14 @@
     /*
      * @see dwtx.jface.text.ILineTracker#getLineOffset(int)
      */
-    public final int getLineOffset(int line) throws BadLocationException {
+    public final int getLineOffset(int line)  {
         return offsetByLine(line);
     }
 
     /*
      * @see dwtx.jface.text.ILineTracker#getLineLength(int)
      */
-    public final int getLineLength(int line) throws BadLocationException {
+    public final int getLineLength(int line)  {
         Node node= nodeByLine(line);
         return node.length;
     }
@@ -1285,14 +1285,14 @@
     /*
      * @see dwtx.jface.text.ILineTracker#getLineNumberOfOffset(int)
      */
-    public final int getLineNumberOfOffset(int offset) throws BadLocationException {
+    public final int getLineNumberOfOffset(int offset)  {
         return lineByOffset(offset);
     }
 
     /*
      * @see dwtx.jface.text.ILineTracker#getLineInformationOfOffset(int)
      */
-    public final IRegion getLineInformationOfOffset(final int offset) throws BadLocationException {
+    public final IRegion getLineInformationOfOffset(final int offset)  {
         // Inline nodeByOffset start as we need both node and offset
         int remaining= offset;
         Node node= fRoot;
@@ -1322,7 +1322,7 @@
     /*
      * @see dwtx.jface.text.ILineTracker#getLineInformation(int)
      */
-    public final IRegion getLineInformation(int line) throws BadLocationException {
+    public final IRegion getLineInformation(int line)  {
         try {
             // Inline nodeByLine start
             int remaining= line;