Mercurial > projects > dwt-addons
comparison dwtx/jface/text/DocumentCommand.d @ 156:a9566845f1cb
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 25 Aug 2008 19:03:46 +0200 |
parents | f70d9508c95c |
children | 25f1f92fa3df |
comparison
equal
deleted
inserted
replaced
155:8442b6b2da2d | 156:a9566845f1cb |
---|---|
242 } | 242 } |
243 | 243 |
244 /* | 244 /* |
245 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) | 245 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) |
246 */ | 246 */ |
247 public int compareTo(final Object object) { | 247 public int compareTo(Object object) { |
248 if (isEqual(object)) | 248 if (isEqual(object)) |
249 return 0; | 249 return 0; |
250 | 250 |
251 final Command command= cast(Command) object; | 251 final Command command= cast(Command) object; |
252 | 252 |
329 * | 329 * |
330 * @param commands an ascending ordered list of commands | 330 * @param commands an ascending ordered list of commands |
331 * @param command the original command | 331 * @param command the original command |
332 * @param forward the direction | 332 * @param forward the direction |
333 */ | 333 */ |
334 public this(final List commands, final Command command, final bool forward) { | 334 public this(List commands, Command command, bool forward) { |
335 if (commands is null || command is null) | 335 if (commands is null || command is null) |
336 throw new IllegalArgumentException(); | 336 throw new IllegalArgumentException(); |
337 fIterator= forward ? commands.iterator() : new ReverseListIterator(commands.listIterator(commands.size())); | 337 fIterator= forward ? commands.iterator() : new ReverseListIterator(commands.listIterator(commands.size())); |
338 fCommand= command; | 338 fCommand= command; |
339 fForward= forward; | 339 fForward= forward; |