diff dwtx/jface/text/IDocument.d @ 139:93a6ec48fd28

Regexp throws removal in interfaces
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:31:41 +0200
parents 51e6e63f930e
children ea8dd2e11034
line wrap: on
line diff
--- a/dwtx/jface/text/IDocument.d	Sun Aug 24 02:26:23 2008 +0200
+++ b/dwtx/jface/text/IDocument.d	Sun Aug 24 02:31:41 2008 +0200
@@ -275,7 +275,7 @@
      * @return the character at the offset
      * @exception BadLocationException if the offset is invalid in this document
      */
-    char getChar(int offset) throws BadLocationException;
+    char getChar(int offset) ;
 
     /**
      * Returns the number of characters in this document.
@@ -299,7 +299,7 @@
      * @return the document's text for the specified range
      * @exception BadLocationException if the range is invalid in this document
      */
-    String get(int offset, int length) throws BadLocationException;
+    String get(int offset, int length) ;
 
     /**
      * Replaces the content of the document with the given text.
@@ -325,7 +325,7 @@
      * @see DocumentEvent
      * @see IDocumentListener
      */
-    void replace(int offset, int length, String text) throws BadLocationException;
+    void replace(int offset, int length, String text) ;
 
     /**
      * Registers the document listener with the document. After registration
@@ -395,7 +395,7 @@
      * @param category the category to be removed
      * @exception BadPositionCategoryException if category is undefined in this document
      */
-    void removePositionCategory(String category) throws BadPositionCategoryException;
+    void removePositionCategory(String category) ;
 
     /**
      * Returns all position categories of this document. This
@@ -420,7 +420,7 @@
      * @param position the position to be added
      * @exception BadLocationException if position describes an invalid range in this document
      */
-    void addPosition(Position position) throws BadLocationException;
+    void addPosition(Position position) ;
 
     /**
      * Removes the given position from the document's default position category.
@@ -456,7 +456,7 @@
      * @param position the position to be deleted
      * @exception BadPositionCategoryException if category is undefined in this document
      */
-    void removePosition(String category, Position position) throws BadPositionCategoryException;
+    void removePosition(String category, Position position) ;
 
     /**
      * Returns all positions of the given position category.
@@ -468,7 +468,7 @@
      * @return the list of all positions
      * @exception BadPositionCategoryException if category is undefined in this document
      */
-    Position[] getPositions(String category) throws BadPositionCategoryException;
+    Position[] getPositions(String category) ;
 
     /**
      * Determines whether a position described by the parameters is managed by this document.
@@ -571,7 +571,7 @@
      * @return the partition type
      * @exception BadLocationException if offset is invalid in this document
      */
-    String getContentType(int offset) throws BadLocationException;
+    String getContentType(int offset) ;
 
     /**
      * Returns the document partition in which the position is located.
@@ -588,7 +588,7 @@
      * @return a specification of the partition
      * @exception BadLocationException if offset is invalid in this document
      */
-    ITypedRegion getPartition(int offset) throws BadLocationException;
+    ITypedRegion getPartition(int offset) ;
 
     /**
      * Computes the partitioning of the given document range using the
@@ -607,7 +607,7 @@
      * @return a specification of the range's partitioning
      * @exception BadLocationException if the range is invalid in this document
      */
-    ITypedRegion[] computePartitioning(int offset, int length) throws BadLocationException;
+    ITypedRegion[] computePartitioning(int offset, int length) ;
 
     /**
      * Registers the document partitioning listener with the document. After registration
@@ -685,7 +685,7 @@
      * @return the length of the line
      * @exception BadLocationException if the line number is invalid in this document
      */
-    int getLineLength(int line) throws BadLocationException;
+    int getLineLength(int line) ;
 
     /**
      * Returns the number of the line at which the character of the specified position is located.
@@ -697,7 +697,7 @@
      * @return the number of the line
      * @exception BadLocationException if the offset is invalid in this document
      */
-    int getLineOfOffset(int offset) throws BadLocationException;
+    int getLineOfOffset(int offset) ;
 
     /**
      * Determines the offset of the first character of the given line.
@@ -706,7 +706,7 @@
      * @return the document offset
      * @exception BadLocationException if the line number is invalid in this document
      */
-    int getLineOffset(int line) throws BadLocationException;
+    int getLineOffset(int line) ;
 
     /**
      * Returns a description of the specified line. The line is described by its
@@ -716,7 +716,7 @@
      * @return a line description
      * @exception BadLocationException if the line number is invalid in this document
      */
-    IRegion getLineInformation(int line) throws BadLocationException;
+    IRegion getLineInformation(int line) ;
 
     /**
      * Returns a description of the line at the given offset.
@@ -727,7 +727,7 @@
      * @return a region describing the line
      * @exception BadLocationException if offset is invalid in this document
      */
-    IRegion getLineInformationOfOffset(int offset) throws BadLocationException;
+    IRegion getLineInformationOfOffset(int offset) ;
 
     /**
      * Returns the number of lines in this document
@@ -744,7 +744,7 @@
      * @return the number of lines occupied by the specified range
      * @exception BadLocationException if specified range is invalid in this tracker
      */
-    int getNumberOfLines(int offset, int length) throws BadLocationException;
+    int getNumberOfLines(int offset, int length) ;
 
     /**
      * Computes the number of lines in the given text. For a given
@@ -774,7 +774,7 @@
      * @return the line's delimiter or <code>null</code> if line does not have a delimiter
      * @exception BadLocationException if the line number is invalid in this document
      */
-    String getLineDelimiter(int line) throws BadLocationException;
+    String getLineDelimiter(int line) ;
 
 
     /* ---------------------------- search ------------------------------------ */
@@ -792,5 +792,5 @@
      * @exception BadLocationException if startOffset is an invalid document offset
      * @deprecated as of 3.0 search is provided by {@link FindReplaceDocumentAdapter}
      */
-    int search(int startOffset, String findString, bool forwardSearch, bool caseSensitive, bool wholeWord) throws BadLocationException;
+    int search(int startOffset, String findString, bool forwardSearch, bool caseSensitive, bool wholeWord) ;
 }