KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > debug > core > IEvaluationRunnable


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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.jdt.debug.core;
12
13
14 import org.eclipse.core.runtime.IProgressMonitor;
15 import org.eclipse.debug.core.DebugException;
16  
17 /**
18  * A runnable that represents one logical evaluation
19  * to be run in a target thread.
20  * <p>
21  * Clients are intended to implement this interface.
22  * </p>
23  *
24  * @see org.eclipse.jdt.debug.core.IJavaThread#runEvaluation(IEvaluationRunnable, IProgressMonitor, int, boolean)
25  * @since 2.0
26  */

27 public interface IEvaluationRunnable {
28     
29     /**
30      * Runs this evaluation in the specified thread, reporting
31      * progress to the given progress monitor.
32      *
33      * @param thread the thread in which to run the evaluation
34      * @param monitor progress monitor (may be <code>null</code>)
35      * @exception DebugException if an exception occurs during
36      * the evaluation
37      */

38     public abstract void run(IJavaThread thread, IProgressMonitor monitor) throws DebugException;
39
40 }
41
Popular Tags