comparison dwtx/jface/text/DocumentClone.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 1a5b8f8129df
comparison
equal deleted inserted replaced
132:77bd3bb3d7b8 133:7d818bd32d63
173 /** 173 /**
174 * Creates a new string text store with the given content. 174 * Creates a new string text store with the given content.
175 * 175 *
176 * @param content the content 176 * @param content the content
177 */ 177 */
178 public StringTextStore(String content) { 178 public this(String content) {
179 Assert.isNotNull(content); 179 Assert.isNotNull(content);
180 fContent= content; 180 fContent= content;
181 } 181 }
182 182
183 /* 183 /*
219 * Creates a new document clone with the given content. 219 * Creates a new document clone with the given content.
220 * 220 *
221 * @param content the content 221 * @param content the content
222 * @param lineDelimiters the line delimiters 222 * @param lineDelimiters the line delimiters
223 */ 223 */
224 public DocumentClone(String content, String[] lineDelimiters) { 224 public this(String content, String[] lineDelimiters) {
225 super(); 225 super();
226 setTextStore(new StringTextStore(content)); 226 setTextStore(new StringTextStore(content));
227 ConfigurableLineTracker tracker= new ConfigurableLineTracker(lineDelimiters); 227 ConfigurableLineTracker tracker= new ConfigurableLineTracker(lineDelimiters);
228 setLineTracker(tracker); 228 setLineTracker(tracker);
229 getTracker().set(content); 229 getTracker().set(content);