01: /*******************************************************************************
02: * Copyright (c) 2004, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.operation;
11:
12: /**
13: * A thread listener is an object that is interested in receiving notifications
14: * of thread changes. For example, a thread listener can be used to notify a
15: * runnable of the thread that will execute it, allowing the runnable to transfer
16: * thread-local state from the calling thread before control passes to the new thread.
17: *
18: * @since 3.1
19: */
20: public interface IThreadListener {
21: /**
22: * Notification that a thread change is occurring.
23: *
24: * @param thread The new thread
25: */
26: public void threadChange(Thread thread);
27: }
|