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;
11:
12: /**
13: * Describes a region of an indexed text store such as a document or a string.
14: * The region consists of offset, length, and type. The region type is defined
15: * as a string.
16: * <p>
17: * A typed region can, e.g., be used to described document partitions.</p>
18: * <p>
19: * Clients may implement this interface or use the standard implementation
20: * {@link org.eclipse.jface.text.TypedRegion}.</p>
21: */
22: public interface ITypedRegion extends IRegion {
23:
24: /**
25: * Returns the content type of the region.
26: *
27: * @return the content type of the region
28: */
29: String getType();
30: }
|