Mercurial > projects > dwt2
comparison org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/LineIndexOutOfBoundsException.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
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 org.eclipse.jface.internal.text.revisions.LineIndexOutOfBoundsException; | |
14 | |
15 import org.eclipse.jface.internal.text.revisions.HunkComputer; // packageimport | |
16 import org.eclipse.jface.internal.text.revisions.Hunk; // packageimport | |
17 import org.eclipse.jface.internal.text.revisions.Colors; // packageimport | |
18 import org.eclipse.jface.internal.text.revisions.ChangeRegion; // packageimport | |
19 import org.eclipse.jface.internal.text.revisions.Range; // packageimport | |
20 import org.eclipse.jface.internal.text.revisions.RevisionPainter; // packageimport | |
21 import org.eclipse.jface.internal.text.revisions.RevisionSelectionProvider; // packageimport | |
22 | |
23 | |
24 import java.lang.all; | |
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 const long serialVersionUID= 1L; | |
35 | |
36 /** | |
37 * Constructs an <code>LineIndexOutOfBoundsException</code> with no detail message. | |
38 */ | |
39 public this() { | |
40 super(); | |
41 } | |
42 | |
43 /** | |
44 * Constructs an <code>LineIndexOutOfBoundsException</code> with the specified detail message. | |
45 * | |
46 * @param s the detail message. | |
47 */ | |
48 public this(String s) { | |
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 */ | |
58 public this(int index) { | |
59 super("Line index out of range: " ~ Integer.toString(index)); //$NON-NLS-1$ | |
60 } | |
61 } |