Mercurial > projects > dwt-addons
diff dwtx/text/edits/MoveSourceEdit.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 | 5cf141e43417 |
line wrap: on
line diff
--- a/dwtx/text/edits/MoveSourceEdit.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/text/edits/MoveSourceEdit.d Sun Aug 24 02:20:40 2008 +0200 @@ -229,7 +229,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("MoveSourceEdit.no_target")); //$NON-NLS-1$ if (fTarget.getSourceEdit() !is this) @@ -286,7 +286,7 @@ //---- document updating ---------------------------------------------------------------- - int performDocumentUpdating(IDocument document) throws BadLocationException { + int performDocumentUpdating(IDocument document) { document.replace(getOffset(), getLength(), ""); //$NON-NLS-1$ fDelta= -getLength(); return fDelta; @@ -307,7 +307,7 @@ return fModifier !is null; } - private void applyTransformation(IDocument document, int style) throws MalformedTreeException { + private void applyTransformation(IDocument document, int style) { if ((style & TextEdit.UPDATE_REGIONS) !is 0 && fSourceRoot !is null) { Map editMap= new HashMap(); TextEdit newEdit= createEdit(editMap);