6
|
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 dwtx.jface.operation.IThreadListener;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
167
|
16 import dwtx.dwtxhelper.JThread;
|
6
|
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 */
|
167
|
32 public void threadChange(JThread thread);
|
6
|
33 }
|