KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > core > model > ITerminate


1 /*******************************************************************************
2  * Copyright (c) 2000, 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.debug.core.model;
12
13  
14 import org.eclipse.debug.core.DebugException;
15
16 /**
17  * Provides the ability to terminate an execution
18  * context - for example, a thread, debug target or process.
19  * <p>
20  * Clients may implement this interface.
21  * </p>
22  */

23 public interface ITerminate {
24     /**
25      * Returns whether this element can be terminated.
26      *
27      * @return whether this element can be terminated
28      */

29     public boolean canTerminate();
30     /**
31      * Returns whether this element is terminated.
32      *
33      * @return whether this element is terminated
34      */

35     public boolean isTerminated();
36     /**
37      * Causes this element to terminate, generating a <code>TERMINATE</code> event.
38      * Implementations may be blocking or non-blocking.
39      *
40      * @exception DebugException on failure. Reasons include:<ul>
41      * <li>TARGET_REQUEST_FAILED - The request failed in the target
42      * <li>NOT_SUPPORTED - The capability is not supported by the target
43      * </ul>
44      */

45     public void terminate() throws DebugException;
46 }
47
Popular Tags