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.projection.IMinimalMapping;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17
|
|
18 import dwtx.jface.text.BadLocationException;
|
|
19 import dwtx.jface.text.IRegion;
|
|
20
|
|
21
|
|
22 /**
|
|
23 * Internal interface for defining the exact subset of
|
|
24 * {@link dwtx.jface.text.projection.ProjectionMapping} that the
|
|
25 * {@link dwtx.jface.text.projection.ProjectionTextStore} is allowed to
|
|
26 * access.
|
|
27 *
|
|
28 * @since 3.0
|
|
29 */
|
|
30 interface IMinimalMapping {
|
|
31
|
|
32 /*
|
|
33 * @see dwtx.jface.text.IDocumentInformationMapping#getCoverage()
|
|
34 */
|
|
35 IRegion getCoverage();
|
|
36
|
|
37 /*
|
|
38 * @see dwtx.jface.text.IDocumentInformationMapping#toOriginRegion(IRegion)
|
|
39 */
|
|
40 IRegion toOriginRegion(IRegion region) throws BadLocationException;
|
|
41
|
|
42 /*
|
|
43 * @see dwtx.jface.text.IDocumentInformationMapping#toOriginOffset(int)
|
|
44 */
|
|
45 int toOriginOffset(int offset) throws BadLocationException;
|
|
46
|
|
47 /*
|
|
48 * @see dwtx.jface.text.IDocumentInformationMappingExtension#toExactOriginRegions(IRegion)
|
|
49 */
|
|
50 IRegion[] toExactOriginRegions(IRegion region) throws BadLocationException;
|
|
51
|
|
52 /*
|
|
53 * @see dwtx.jface.text.IDocumentInformationMappingExtension#getImageLength()
|
|
54 */
|
|
55 int getImageLength();
|
|
56 }
|