comparison org.eclipse.jface/src/org/eclipse/jface/operation/IThreadListener.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children 52184e4b815c
comparison
equal deleted inserted replaced
11:43904fec5dca 12:bc29606a740c
1 /*******************************************************************************
2 * Copyright (c) 2004, 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 module org.eclipse.jface.operation.IThreadListener;
14
15 import java.lang.all;
16 import java.lang.JThread;
17
18 /**
19 * A thread listener is an object that is interested in receiving notifications
20 * of thread changes. For example, a thread listener can be used to notify a
21 * runnable of the thread that will execute it, allowing the runnable to transfer
22 * thread-local state from the calling thread before control passes to the new thread.
23 *
24 * @since 3.1
25 */
26 public interface IThreadListener {
27 /**
28 * Notification that a thread change is occurring.
29 *
30 * @param thread The new thread
31 */
32 public void threadChange(JThread thread);
33 }