1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 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 *******************************************************************************/ 11 package org.eclipse.jface.text.projection; 12 13 14 import org.eclipse.jface.text.Position; 15 16 17 /** 18 * Internal class. Do not use. Only public for testing purposes. 19 * <p> 20 * A fragment is a range of the master document that has an image, the so called 21 * segment, in a projection document.</p> 22 * 23 * @since 3.0 24 */ 25 public class Fragment extends Position { 26 27 /** 28 * The corresponding segment of this fragment. 29 */ 30 public Segment segment; 31 32 /** 33 * Creates a new fragment covering the given range. 34 * 35 * @param offset the offset of the fragment 36 * @param length the length of the fragment 37 */ 38 public Fragment(int offset, int length) { 39 super(offset, length); 40 } 41 } 42