Mercurial > projects > dwt-addons
annotate dwtx/jface/internal/text/revisions/LineIndexOutOfBoundsException.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 | 000f9136b8f7 |
rev | line source |
---|---|
129 | 1 /******************************************************************************* |
2 * Copyright (c) 2005, 2006 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.jface.internal.text.revisions.LineIndexOutOfBoundsException; | |
14 | |
131 | 15 import dwtx.jface.internal.text.revisions.HunkComputer; // packageimport |
16 import dwtx.jface.internal.text.revisions.Hunk; // packageimport | |
17 import dwtx.jface.internal.text.revisions.Colors; // packageimport | |
18 import dwtx.jface.internal.text.revisions.ChangeRegion; // packageimport | |
19 import dwtx.jface.internal.text.revisions.Range; // packageimport | |
20 import dwtx.jface.internal.text.revisions.RevisionPainter; // packageimport | |
21 import dwtx.jface.internal.text.revisions.RevisionSelectionProvider; // packageimport | |
22 | |
23 | |
129 | 24 import dwt.dwthelper.utils; |
25 | |
26 /** | |
27 * Thrown to indicate that an attempt to create or modify a {@link Range} failed because it would | |
28 * have resulted in an illegal range. A range is illegal if its length is <= 0 or if its start | |
29 * line is < 0. | |
30 * | |
31 * @since 3.2 | |
32 */ | |
33 public final class LineIndexOutOfBoundsException : IndexOutOfBoundsException { | |
34 private static final long serialVersionUID= 1L; | |
35 | |
36 /** | |
37 * Constructs an <code>LineIndexOutOfBoundsException</code> with no detail message. | |
38 */ | |
133
7d818bd32d63
Fix ctors to this with gvim regexp
Frank Benoit <benoit@tionex.de>
parents:
131
diff
changeset
|
39 public this() { |
129 | 40 super(); |
41 } | |
42 | |
43 /** | |
44 * Constructs an <code>LineIndexOutOfBoundsException</code> with the specified detail message. | |
45 * | |
46 * @param s the detail message. | |
47 */ | |
133
7d818bd32d63
Fix ctors to this with gvim regexp
Frank Benoit <benoit@tionex.de>
parents:
131
diff
changeset
|
48 public this(String s) { |
129 | 49 super(s); |
50 } | |
51 | |
52 /** | |
53 * Constructs a new <code>LineIndexOutOfBoundsException</code> | |
54 * object with an argument indicating the illegal index. | |
55 * | |
56 * @param index the illegal index. | |
57 */ | |
133
7d818bd32d63
Fix ctors to this with gvim regexp
Frank Benoit <benoit@tionex.de>
parents:
131
diff
changeset
|
58 public this(int index) { |
129 | 59 super("Line index out of range: " + index); //$NON-NLS-1$ |
60 } | |
61 } |