Mercurial > projects > dwt-addons
comparison dwtx/jface/text/CopyOnWriteTextStore.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 | 75302ef3f92f |
comparison
equal
deleted
inserted
replaced
132:77bd3bb3d7b8 | 133:7d818bd32d63 |
---|---|
185 private String fText= ""; //$NON-NLS-1$ | 185 private String fText= ""; //$NON-NLS-1$ |
186 | 186 |
187 /** | 187 /** |
188 * Create an empty text store. | 188 * Create an empty text store. |
189 */ | 189 */ |
190 private StringTextStore() { | 190 private this() { |
191 super(); | 191 super(); |
192 } | 192 } |
193 | 193 |
194 /** | 194 /** |
195 * Create a text store with initial content. | 195 * Create a text store with initial content. |
196 * @param text the initial content | 196 * @param text the initial content |
197 */ | 197 */ |
198 private StringTextStore(String text) { | 198 private this(String text) { |
199 super(); | 199 super(); |
200 set(text); | 200 set(text); |
201 } | 201 } |
202 | 202 |
203 /* | 203 /* |
250 * | 250 * |
251 * @param modifiableTextStore | 251 * @param modifiableTextStore |
252 * a modifiable <code>ITextStore</code> instance, may not be | 252 * a modifiable <code>ITextStore</code> instance, may not be |
253 * <code>null</code> | 253 * <code>null</code> |
254 */ | 254 */ |
255 public CopyOnWriteTextStore(ITextStore modifiableTextStore) { | 255 public this(ITextStore modifiableTextStore) { |
256 Assert.isNotNull(modifiableTextStore); | 256 Assert.isNotNull(modifiableTextStore); |
257 fTextStore= new StringTextStore(); | 257 fTextStore= new StringTextStore(); |
258 fModifiableTextStore= modifiableTextStore; | 258 fModifiableTextStore= modifiableTextStore; |
259 } | 259 } |
260 | 260 |