Mercurial > projects > dwt-addons
diff dwtx/text/edits/CopySourceEdit.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 | f70d9508c95c |
line wrap: on
line diff
--- a/dwtx/text/edits/CopySourceEdit.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/text/edits/CopySourceEdit.d Sun Aug 24 02:20:40 2008 +0200 @@ -162,7 +162,7 @@ * @exception MalformedTreeException is thrown if the target edit * is a direct or indirect child of the source edit */ - public void setTargetEdit(CopyTargetEdit edit) throws MalformedTreeException { + public void setTargetEdit(CopyTargetEdit edit) { Assert.isNotNull(edit); if (fTarget !is edit) { fTarget= edit; @@ -260,7 +260,7 @@ return result; } - void performConsistencyCheck(TextEditProcessor processor, IDocument document) throws MalformedTreeException { + void performConsistencyCheck(TextEditProcessor processor, IDocument document) { if (fTarget is null) throw new MalformedTreeException(getParent(), this, TextEditMessages.getString("CopySourceEdit.no_target")); //$NON-NLS-1$ if (fTarget.getSourceEdit() !is this) @@ -311,7 +311,7 @@ return fModifier !is null; } - private void applyTransformation(IDocument document) throws MalformedTreeException { + private void applyTransformation(IDocument document) { TextEdit newEdit= new MultiTextEdit(0, document.getLength()); ReplaceEdit[] replaces= fModifier.getModifications(document.get()); for (int i= 0; i < replaces.length; i++) { @@ -326,7 +326,7 @@ //---- document updating ---------------------------------------------------------------- - int performDocumentUpdating(IDocument document) throws BadLocationException { + int performDocumentUpdating(IDocument document) { fDelta= 0; return fDelta; }