comparison dwtx/jface/text/IDocumentExtension2.d @ 129:eb30df5ca28b

Added JFace Text sources
author Frank Benoit <benoit@tionex.de>
date Sat, 23 Aug 2008 19:10:48 +0200
parents
children c4fb132a086c
comparison
equal deleted inserted replaced
128:8df1d4193877 129:eb30df5ca28b
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
14 module dwtx.jface.text.IDocumentExtension2;
15
16 import dwt.dwthelper.utils;
17
18 /**
19 * Extension interface for {@link dwtx.jface.text.IDocument}.<p>
20 *
21 * It adds configuration methods to post notification replaces and document
22 * listener notification.
23 *
24 * @since 2.1
25 */
26 public interface IDocumentExtension2 {
27
28 /**
29 * Tells the receiver to ignore calls to
30 * <code>registerPostNotificationReplace</code> until
31 * <code>acceptPostNotificationReplaces</code> is called.
32 */
33 void ignorePostNotificationReplaces();
34
35 /**
36 * Tells the receiver to accept calls to
37 * <code>registerPostNotificationReplace</code> until
38 * <code>ignorePostNotificationReplaces</code> is called.
39 */
40 void acceptPostNotificationReplaces();
41
42 /**
43 * Can be called prior to a <code>replace</code> operation. After the
44 * <code>replace</code> <code>resumeListenerNotification</code> must be
45 * called. The affect of these calls is that no document listener is notified
46 * until <code>resumeListenerNotification</code> is called. This allows clients
47 * to update structure before any listener is informed about the change.<p>
48 * Listener notification can only be stopped for a single <code>replace</code> operation.
49 * Otherwise, document change notifications will be lost.
50 */
51 void stopListenerNotification();
52
53 /**
54 * Resumes the notification of document listeners which must previously
55 * have been stopped by a call to <code>stopListenerNotification</code>.
56 */
57 void resumeListenerNotification();
58 }