KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > ITypedRegion


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;
12
13
14
15 /**
16  * Describes a region of an indexed text store such as a document or a string.
17  * The region consists of offset, length, and type. The region type is defined
18  * as a string.
19  * <p>
20  * A typed region can, e.g., be used to described document partitions.</p>
21  * <p>
22  * Clients may implement this interface or use the standard implementation
23  * {@link org.eclipse.jface.text.TypedRegion}.</p>
24  */

25 public interface ITypedRegion extends IRegion {
26
27     /**
28      * Returns the content type of the region.
29      *
30      * @return the content type of the region
31      */

32     String JavaDoc getType();
33 }
34
Popular Tags