Mercurial > projects > dwt-addons
comparison dwtx/jface/text/DocumentCommand.d @ 146:75302ef3f92f
final
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 22:34:04 +0200 |
parents | b6bad70d540a |
children | eb21d3dfc767 |
comparison
equal
deleted
inserted
replaced
145:02cd5f1224d3 | 146:75302ef3f92f |
---|---|
184 * A command which is added to document commands. | 184 * A command which is added to document commands. |
185 * @since 2.1 | 185 * @since 2.1 |
186 */ | 186 */ |
187 private static class Command : Comparable { | 187 private static class Command : Comparable { |
188 /** The offset of the range to be replaced */ | 188 /** The offset of the range to be replaced */ |
189 private final int fOffset; | 189 private const int fOffset; |
190 /** The length of the range to be replaced. */ | 190 /** The length of the range to be replaced. */ |
191 private final int fLength; | 191 private const int fLength; |
192 /** The replacement text */ | 192 /** The replacement text */ |
193 private final String fText; | 193 private const String fText; |
194 /** The listener who owns this command */ | 194 /** The listener who owns this command */ |
195 private final IDocumentListener fOwner; | 195 private const IDocumentListener fOwner; |
196 | 196 |
197 /** | 197 /** |
198 * Creates a new command with the given specification. | 198 * Creates a new command with the given specification. |
199 * | 199 * |
200 * @param offset the offset of the replace command | 200 * @param offset the offset of the replace command |
274 * An iterator, which iterates in reverse over a list. | 274 * An iterator, which iterates in reverse over a list. |
275 */ | 275 */ |
276 private static class ReverseListIterator : Iterator { | 276 private static class ReverseListIterator : Iterator { |
277 | 277 |
278 /** The list iterator. */ | 278 /** The list iterator. */ |
279 private final ListIterator fListIterator; | 279 private const ListIterator fListIterator; |
280 | 280 |
281 /** | 281 /** |
282 * Creates a reverse list iterator. | 282 * Creates a reverse list iterator. |
283 * @param listIterator the iterator that this reverse iterator is based upon | 283 * @param listIterator the iterator that this reverse iterator is based upon |
284 */ | 284 */ |
314 * A command iterator. | 314 * A command iterator. |
315 */ | 315 */ |
316 private static class CommandIterator : Iterator { | 316 private static class CommandIterator : Iterator { |
317 | 317 |
318 /** The command iterator. */ | 318 /** The command iterator. */ |
319 private final Iterator fIterator; | 319 private const Iterator fIterator; |
320 | 320 |
321 /** The original command. */ | 321 /** The original command. */ |
322 private Command fCommand; | 322 private Command fCommand; |
323 | 323 |
324 /** A flag indicating the direction of iteration. */ | 324 /** A flag indicating the direction of iteration. */ |
407 public int caretOffset; | 407 public int caretOffset; |
408 /** | 408 /** |
409 * Additional document commands. | 409 * Additional document commands. |
410 * @since 2.1 | 410 * @since 2.1 |
411 */ | 411 */ |
412 private final List fCommands= new ArrayList(); | 412 private const List fCommands= new ArrayList(); |
413 /** | 413 /** |
414 * Indicates whether the caret should be shifted by this command. | 414 * Indicates whether the caret should be shifted by this command. |
415 * @since 3.0 | 415 * @since 3.0 |
416 */ | 416 */ |
417 public bool shiftsCaret; | 417 public bool shiftsCaret; |