Mercurial > projects > dwt-addons
comparison dwtx/text/edits/TextEditProcessor.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | c4fb132a086c |
children | 6dcb0baaa031 |
comparison
equal
deleted
inserted
replaced
133:7d818bd32d63 | 134:51e6e63f930e |
---|---|
89 Assert.isNotNull(document); | 89 Assert.isNotNull(document); |
90 Assert.isNotNull(root); | 90 Assert.isNotNull(root); |
91 fDocument= document; | 91 fDocument= document; |
92 fRoot= root; | 92 fRoot= root; |
93 if (fRoot instanceof MultiTextEdit) | 93 if (fRoot instanceof MultiTextEdit) |
94 ((MultiTextEdit)fRoot).defineRegion(0); | 94 (cast(MultiTextEdit)fRoot).defineRegion(0); |
95 fStyle= style; | 95 fStyle= style; |
96 if (secondary) { | 96 if (secondary) { |
97 fChecked= true; | 97 fChecked= true; |
98 fSourceEdits= new ArrayList(); | 98 fSourceEdits= new ArrayList(); |
99 } | 99 } |
221 return collector.undo; | 221 return collector.undo; |
222 } | 222 } |
223 | 223 |
224 private void computeSources() { | 224 private void computeSources() { |
225 for (Iterator iter= fSourceEdits.iterator(); iter.hasNext();) { | 225 for (Iterator iter= fSourceEdits.iterator(); iter.hasNext();) { |
226 List list= (List)iter.next(); | 226 List list= cast(List)iter.next(); |
227 if (list !is null) { | 227 if (list !is null) { |
228 for (Iterator edits= list.iterator(); edits.hasNext();) { | 228 for (Iterator edits= list.iterator(); edits.hasNext();) { |
229 TextEdit edit= (TextEdit)edits.next(); | 229 TextEdit edit= cast(TextEdit)edits.next(); |
230 edit.traverseSourceComputation(this, fDocument); | 230 edit.traverseSourceComputation(this, fDocument); |
231 } | 231 } |
232 } | 232 } |
233 } | 233 } |
234 } | 234 } |