01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.text.projection;
11:
12: import org.eclipse.jface.text.Position;
13:
14: /**
15: * Internal class. Do not use. Only public for testing purposes.
16: * <p>
17: * A fragment is a range of the master document that has an image, the so called
18: * segment, in a projection document.</p>
19: *
20: * @since 3.0
21: */
22: public class Fragment extends Position {
23:
24: /**
25: * The corresponding segment of this fragment.
26: */
27: public Segment segment;
28:
29: /**
30: * Creates a new fragment covering the given range.
31: *
32: * @param offset the offset of the fragment
33: * @param length the length of the fragment
34: */
35: public Fragment(int offset, int length) {
36: super(offset, length);
37: }
38: }
|