129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2008 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.ChildDocumentManager;
|
|
14
|
131
|
15 import dwtx.jface.text.projection.ProjectionMapping; // packageimport
|
|
16 import dwtx.jface.text.projection.SegmentUpdater; // packageimport
|
|
17 import dwtx.jface.text.projection.Segment; // packageimport
|
|
18 import dwtx.jface.text.projection.ProjectionDocument; // packageimport
|
|
19 import dwtx.jface.text.projection.FragmentUpdater; // packageimport
|
|
20 import dwtx.jface.text.projection.ProjectionDocumentEvent; // packageimport
|
|
21 import dwtx.jface.text.projection.ChildDocument; // packageimport
|
|
22 import dwtx.jface.text.projection.IMinimalMapping; // packageimport
|
|
23 import dwtx.jface.text.projection.Fragment; // packageimport
|
|
24 import dwtx.jface.text.projection.ProjectionTextStore; // packageimport
|
|
25 import dwtx.jface.text.projection.ProjectionDocumentManager; // packageimport
|
|
26
|
|
27
|
129
|
28 import dwt.dwthelper.utils;
|
|
29
|
|
30 import dwtx.jface.text.IDocument;
|
|
31
|
|
32
|
|
33 /**
|
|
34 * Implementation of a child document manager based on
|
|
35 * {@link dwtx.jface.text.projection.ProjectionDocumentManager}. This
|
|
36 * class exists for compatibility reasons.
|
|
37 * <p>
|
|
38 * Internal class. This class is not intended to be used by clients outside
|
|
39 * the Platform Text framework.</p>
|
|
40 *
|
|
41 * @since 3.0
|
|
42 * @noinstantiate This class is not intended to be instantiated by clients.
|
|
43 * @noextend This class is not intended to be subclassed by clients.
|
|
44 */
|
|
45 public class ChildDocumentManager : ProjectionDocumentManager {
|
|
46
|
|
47 /*
|
|
48 * @see dwtx.jface.text.projection.ProjectionDocumentManager#createProjectionDocument(dwtx.jface.text.IDocument)
|
|
49 */
|
|
50 protected ProjectionDocument createProjectionDocument(IDocument master) {
|
|
51 return new ChildDocument(master);
|
|
52 }
|
|
53 }
|