129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2008 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.text.projection.Fragment;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17 import dwtx.jface.text.Position;
|
|
18
|
|
19
|
|
20 /**
|
|
21 * Internal class. Do not use. Only public for testing purposes.
|
|
22 * <p>
|
|
23 * A fragment is a range of the master document that has an image, the so called
|
|
24 * segment, in a projection document.</p>
|
|
25 *
|
|
26 * @since 3.0
|
|
27 * @noinstantiate This class is not intended to be instantiated by clients.
|
|
28 * @noextend This class is not intended to be subclassed by clients.
|
|
29 */
|
|
30 public class Fragment : Position {
|
|
31
|
|
32 /**
|
|
33 * The corresponding segment of this fragment.
|
|
34 */
|
|
35 public Segment segment;
|
|
36
|
|
37 /**
|
|
38 * Creates a new fragment covering the given range.
|
|
39 *
|
|
40 * @param offset the offset of the fragment
|
|
41 * @param length the length of the fragment
|
|
42 */
|
|
43 public Fragment(int offset, int length) {
|
|
44 super(offset, length);
|
|
45 }
|
|
46 }
|