diff dwtx/core/commands/operations/IOperationHistoryListener.d @ 3:6518c18a01f7

eclipse.core package without osgi dependencies
author Frank Benoit <benoit@tionex.de>
date Wed, 26 Mar 2008 00:57:19 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwtx/core/commands/operations/IOperationHistoryListener.d	Wed Mar 26 00:57:19 2008 +0100
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2005 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ * Port to the D programming language:
+ *     Frank Benoit <benoit@tionex.de>
+ *******************************************************************************/
+module dwtx.core.commands.operations.IOperationHistoryListener;
+
+import dwtx.core.commands.operations.OperationHistoryEvent;
+
+import dwt.dwthelper.utils;
+
+/**
+ * <p>
+ * This interface is used to listen to notifications from an IOperationHistory.
+ * The supplied OperationHistoryEvent describes the particular notification.
+ * </p>
+ * <p>
+ * Operation history listeners must be prepared to receive notifications from a
+ * background thread. Any UI access occurring inside the implementation must be
+ * properly synchronized using the techniques specified by the client's widget
+ * library.
+ * </p>
+ *
+ * @since 3.1
+ */
+public interface IOperationHistoryListener {
+    /**
+     * Something of note has happened in the IOperationHistory. Listeners should
+     * check the supplied event for details.
+     *
+     * @param event
+     *            the OperationHistoryEvent that describes the particular
+     *            notification.
+     */
+    void historyNotification(OperationHistoryEvent event);
+
+}