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