Mercurial > projects > dwt-addons
comparison dwtx/text/edits/MoveTargetEdit.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 |
comparison
equal
deleted
inserted
replaced
135:65801ad2b265 | 136:6dcb0baaa031 |
---|---|
161 } | 161 } |
162 | 162 |
163 /* | 163 /* |
164 * @see TextEdit#performConsistencyCheck | 164 * @see TextEdit#performConsistencyCheck |
165 */ | 165 */ |
166 void performConsistencyCheck(TextEditProcessor processor, IDocument document) throws MalformedTreeException { | 166 void performConsistencyCheck(TextEditProcessor processor, IDocument document) { |
167 if (fSource is null) | 167 if (fSource is null) |
168 throw new MalformedTreeException(getParent(), this, TextEditMessages.getString("MoveTargetEdit.no_source")); //$NON-NLS-1$ | 168 throw new MalformedTreeException(getParent(), this, TextEditMessages.getString("MoveTargetEdit.no_source")); //$NON-NLS-1$ |
169 if (fSource.getTargetEdit() !is this) | 169 if (fSource.getTargetEdit() !is this) |
170 throw new MalformedTreeException(getParent(), this, TextEditMessages.getString("MoveTargetEdit.different_target")); //$NON-NLS-1$ | 170 throw new MalformedTreeException(getParent(), this, TextEditMessages.getString("MoveTargetEdit.different_target")); //$NON-NLS-1$ |
171 } | 171 } |
173 //---- document updating ---------------------------------------------------------------- | 173 //---- document updating ---------------------------------------------------------------- |
174 | 174 |
175 /* | 175 /* |
176 * @see TextEdit#performDocumentUpdating | 176 * @see TextEdit#performDocumentUpdating |
177 */ | 177 */ |
178 int performDocumentUpdating(IDocument document) throws BadLocationException { | 178 int performDocumentUpdating(IDocument document) { |
179 String source= fSource.getContent(); | 179 String source= fSource.getContent(); |
180 document.replace(getOffset(), getLength(), source); | 180 document.replace(getOffset(), getLength(), source); |
181 fDelta= source.length() - getLength(); | 181 fDelta= source.length() - getLength(); |
182 | 182 |
183 MultiTextEdit sourceRoot= fSource.getSourceRoot(); | 183 MultiTextEdit sourceRoot= fSource.getSourceRoot(); |