Mercurial > projects > dwt-addons
diff dwtx/jface/text/DocumentCommand.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 | 51e6e63f930e |
line wrap: on
line diff
--- a/dwtx/jface/text/DocumentCommand.d Sun Aug 24 01:13:39 2008 +0200 +++ b/dwtx/jface/text/DocumentCommand.d Sun Aug 24 01:29:22 2008 +0200 @@ -203,7 +203,7 @@ * @param owner the document command owner, may be <code>null</code> * @since 3.0 */ - public Command(int offset, int length, String text, IDocumentListener owner) { + public this(int offset, int length, String text, IDocumentListener owner) { if (offset < 0 || length < 0) throw new IllegalArgumentException(); fOffset= offset; @@ -282,7 +282,7 @@ * Creates a reverse list iterator. * @param listIterator the iterator that this reverse iterator is based upon */ - public ReverseListIterator(ListIterator listIterator) { + public this(ListIterator listIterator) { if (listIterator is null) throw new IllegalArgumentException(); fListIterator= listIterator; @@ -331,7 +331,7 @@ * @param command the original command * @param forward the direction */ - public CommandIterator(final List commands, final Command command, final bool forward) { + public this(final List commands, final Command command, final bool forward) { if (commands is null || command is null) throw new IllegalArgumentException(); fIterator= forward ? commands.iterator() : new ReverseListIterator(commands.listIterator(commands.size())); @@ -420,7 +420,7 @@ /** * Creates a new document command. */ - protected DocumentCommand() { + protected this() { } /**