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