129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2006 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.text.undo.IDocumentUndoListener;
|
|
14
|
131
|
15 import dwtx.text.undo.DocumentUndoEvent; // packageimport
|
|
16
|
|
17
|
129
|
18 import dwt.dwthelper.utils;
|
|
19
|
|
20
|
|
21 /**
|
|
22 * This interface is used to listen to notifications from a DocumentUndoManager.
|
|
23 * The supplied DocumentUndoEvent describes the particular notification.
|
|
24 * <p>
|
|
25 * Document undo listeners must be prepared to receive notifications from a
|
|
26 * background thread. Any UI access occurring inside the implementation must be
|
|
27 * properly synchronized using the techniques specified by the client's widget
|
|
28 * library.</p>
|
|
29 * <p>
|
|
30 * Clients may implement this interface.
|
|
31 * </p>
|
159
|
32 *
|
129
|
33 * @since 3.2
|
|
34 */
|
|
35 public interface IDocumentUndoListener {
|
159
|
36
|
129
|
37 /**
|
159
|
38 * The document is involved in an undo-related change. Notify listeners
|
129
|
39 * with an event describing the change.
|
159
|
40 *
|
129
|
41 * @param event the document undo event that describes the particular notification
|
|
42 */
|
|
43 void documentUndoNotification(DocumentUndoEvent event);
|
|
44
|
|
45 }
|