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 * The ability to end a debug session with a target program 18 * and allow the target to continue running. 19 * <p> 20 * Clients may implement this interface. 21 * </p> 22 * @see IDebugTarget 23 */ 24 public interface IDisconnect { 25 /** 26 * Returns whether this element can currently disconnect. 27 * 28 * @return whether this element can currently disconnect 29 */ 30 public boolean canDisconnect(); 31 /** 32 * Disconnects this element from its target. Generally, disconnecting 33 * ends a debug session with a debug target, but allows the target 34 * program to continue running. 35 * 36 * @exception DebugException on failure. Reasons include:<ul> 37 * <li>TARGET_REQUEST_FAILED - The request failed in the target 38 * <li>NOT_SUPPORTED - The capability is not supported by the target 39 * </ul> 40 */ 41 public void disconnect() throws DebugException; 42 /** 43 * Returns whether this element is disconnected. 44 * 45 * @return whether this element is disconnected 46 */ 47 public boolean isDisconnected(); 48 } 49 50 51