comparison dwtx/jface/text/DefaultLineTracker.d @ 159:7926b636c282

...
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 01:57:58 +0200
parents 75302ef3f92f
children
comparison
equal deleted inserted replaced
158:25f1f92fa3df 159:7926b636c282
168 * @noextend This class is not intended to be subclassed by clients. 168 * @noextend This class is not intended to be subclassed by clients.
169 */ 169 */
170 public class DefaultLineTracker : AbstractLineTracker { 170 public class DefaultLineTracker : AbstractLineTracker {
171 171
172 /** The predefined delimiters of this tracker */ 172 /** The predefined delimiters of this tracker */
173 public const static String[] DELIMITERS= { "\r", "\n", "\r\n" }; //$NON-NLS-3$ //$NON-NLS-1$ //$NON-NLS-2$ 173 public const static String[] DELIMITERS= [ "\r", "\n", "\r\n" ]; //$NON-NLS-3$ //$NON-NLS-1$ //$NON-NLS-2$
174 /** A predefined delimiter information which is always reused as return value */ 174 /** A predefined delimiter information which is always reused as return value */
175 private DelimiterInfo fDelimiterInfo= new DelimiterInfo(); 175 private AbstractLineTracker_DelimiterInfo fDelimiterInfo;
176 176
177 177
178 /** 178 /**
179 * Creates a standard line tracker. 179 * Creates a standard line tracker.
180 */ 180 */
181 public this() { 181 public this() {
182 fDelimiterInfo= new AbstractLineTracker_DelimiterInfo();
182 } 183 }
183 184
184 /* 185 /*
185 * @see dwtx.jface.text.ILineTracker#getLegalLineDelimiters() 186 * @see dwtx.jface.text.ILineTracker#getLegalLineDelimiters()
186 */ 187 */
189 } 190 }
190 191
191 /* 192 /*
192 * @see dwtx.jface.text.AbstractLineTracker#nextDelimiterInfo(java.lang.String, int) 193 * @see dwtx.jface.text.AbstractLineTracker#nextDelimiterInfo(java.lang.String, int)
193 */ 194 */
194 protected DelimiterInfo nextDelimiterInfo(String text, int offset) { 195 protected AbstractLineTracker_DelimiterInfo nextDelimiterInfo(String text, int offset) {
195 196
196 char ch; 197 char ch;
197 int length= text.length(); 198 int length= text.length();
198 for (int i= offset; i < length; i++) { 199 for (int i= offset; i < length; i++) {
199 200