Mercurial > projects > dwt-addons
diff dwtx/jface/text/FindReplaceDocumentAdapter.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/FindReplaceDocumentAdapter.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/jface/text/FindReplaceDocumentAdapter.d Sun Aug 24 02:20:40 2008 +0200 @@ -248,7 +248,7 @@ * @throws BadLocationException if startOffset is an invalid document offset * @throws PatternSyntaxException if a regular expression has invalid syntax */ - public IRegion find(int startOffset, String findString, bool forwardSearch, bool caseSensitive, bool wholeWord, bool regExSearch) throws BadLocationException { + public IRegion find(int startOffset, String findString, bool forwardSearch, bool caseSensitive, bool wholeWord, bool regExSearch) { Assert.isTrue(!(regExSearch && wholeWord)); // Adjust offset to special meaning of -1 @@ -283,7 +283,7 @@ * @throws IllegalStateException if a REPLACE or REPLACE_FIND operation is not preceded by a successful FIND operation * @throws PatternSyntaxException if a regular expression has invalid syntax */ - private IRegion findReplace(final FindReplaceOperationCode operationCode, int startOffset, String findString, String replaceText, bool forwardSearch, bool caseSensitive, bool wholeWord, bool regExSearch) throws BadLocationException { + private IRegion findReplace(final FindReplaceOperationCode operationCode, int startOffset, String findString, String replaceText, bool forwardSearch, bool caseSensitive, bool wholeWord, bool regExSearch) { // Validate option combinations Assert.isTrue(!(regExSearch && wholeWord)); @@ -409,7 +409,7 @@ * @throws PatternSyntaxException if \R is added at an illegal position (e.g. in a character set) * @since 3.4 */ - private String substituteLinebreak(String findString) throws PatternSyntaxException { + private String substituteLinebreak(String findString) { int length= findString.length(); StringBuffer buf= new StringBuffer(length); @@ -742,7 +742,7 @@ * @see DocumentEvent * @see IDocumentListener */ - public IRegion replace(String text, bool regExReplace) throws BadLocationException { + public IRegion replace(String text, bool regExReplace) { return findReplace(REPLACE, -1, null, text, false, false, false, regExReplace); }