129
|
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 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module dwtx.jface.text.ITypedRegion;
|
|
14
|
131
|
15 import dwtx.jface.text.IRegion; // packageimport
|
|
16
|
129
|
17 import dwt.dwthelper.utils;
|
|
18
|
|
19
|
|
20
|
|
21 /**
|
|
22 * Describes a region of an indexed text store such as a document or a string.
|
|
23 * The region consists of offset, length, and type. The region type is defined
|
|
24 * as a string.
|
|
25 * <p>
|
|
26 * A typed region can, e.g., be used to described document partitions.</p>
|
|
27 * <p>
|
|
28 * Clients may implement this interface or use the standard implementation
|
|
29 * {@link dwtx.jface.text.TypedRegion}.</p>
|
|
30 */
|
|
31 public interface ITypedRegion : IRegion {
|
|
32
|
|
33 /**
|
|
34 * Returns the content type of the region.
|
|
35 *
|
|
36 * @return the content type of the region
|
|
37 */
|
|
38 String getType();
|
|
39 }
|