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 *******************************************************************************/ 11 package org.eclipse.jface.operation; 12 13 /** 14 * A thread listener is an object that is interested in receiving notifications 15 * of thread changes. For example, a thread listener can be used to notify a 16 * runnable of the thread that will execute it, allowing the runnable to transfer 17 * thread-local state from the calling thread before control passes to the new thread. 18 * 19 * @since 3.1 20 */ 21 public interface IThreadListener { 22 /** 23 * Notification that a thread change is occurring. 24 * 25 * @param thread The new thread 26 */ 27 public void threadChange(Thread thread); 28 } 29