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 */
|
|
39 public LineIndexOutOfBoundsException() {
|
|
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 LineIndexOutOfBoundsException(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 LineIndexOutOfBoundsException(int index) {
|
|
59 super("Line index out of range: " + index); //$NON-NLS-1$
|
|
60 }
|
|
61 }
|