Mercurial > projects > dwt-addons
comparison dwtx/jface/text/Document.d @ 133:7d818bd32d63
Fix ctors to this with gvim regexp
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:29:22 +0200 |
parents | c4fb132a086c |
children | 6dcb0baaa031 |
comparison
equal
deleted
inserted
replaced
132:77bd3bb3d7b8 | 133:7d818bd32d63 |
---|---|
184 */ | 184 */ |
185 public class Document : AbstractDocument { | 185 public class Document : AbstractDocument { |
186 /** | 186 /** |
187 * Creates a new empty document. | 187 * Creates a new empty document. |
188 */ | 188 */ |
189 public Document() { | 189 public this() { |
190 super(); | 190 super(); |
191 setTextStore(new CopyOnWriteTextStore(new GapTextStore())); | 191 setTextStore(new CopyOnWriteTextStore(new GapTextStore())); |
192 setLineTracker(new DefaultLineTracker()); | 192 setLineTracker(new DefaultLineTracker()); |
193 completeInitialization(); | 193 completeInitialization(); |
194 } | 194 } |
196 /** | 196 /** |
197 * Creates a new document with the given initial content. | 197 * Creates a new document with the given initial content. |
198 * | 198 * |
199 * @param initialContent the document's initial content | 199 * @param initialContent the document's initial content |
200 */ | 200 */ |
201 public Document(String initialContent) { | 201 public this(String initialContent) { |
202 super(); | 202 super(); |
203 setTextStore(new CopyOnWriteTextStore(new GapTextStore())); | 203 setTextStore(new CopyOnWriteTextStore(new GapTextStore())); |
204 setLineTracker(new DefaultLineTracker()); | 204 setLineTracker(new DefaultLineTracker()); |
205 getStore().set(initialContent); | 205 getStore().set(initialContent); |
206 getTracker().set(initialContent); | 206 getTracker().set(initialContent); |