blob: a6defd6c52e786abcf0386b492ab4e24ed54f7dd [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.core.model;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.debug.core.ILaunch;
/**
* A debug element represents an artifact in a program being
* debugged.
* <p>
* Some methods on debug elements require communication
* with the target program. Such methods may throw a <code>DebugException</code>
* with a status code of <code>TARGET_REQUEST_FAILED</code>
* when unable to complete a request due to a failure on the target.
* Methods that require communication with the target program or require
* the target to be in a specific state (for example, suspended), are declared
* as such.
* </p>
* <p>
* Debug elements are language independent. However, language specific
* features can be made available via the adapter mechanism provided by
* <code>IAdaptable</code>, or by extending the debug element interfaces.
* A debug model is responsible for declaring any special adapters
* its debug elements implement.
* </p>
* <p>
* Clients may implement this interface.
* </p>
*/
public interface IDebugElement extends IAdaptable {
/**
* Returns the unique identifier of the plug-in
* this debug element originated from.
*
* @return the plug-in identifier
*/
public String getModelIdentifier();
/**
* Returns the debug target this element is contained in.
*
* @return the debug target this element is contained in
*/
public IDebugTarget getDebugTarget();
/**
* Returns the launch this element is contained in.
*
* @return the launch this element is contained in
*/
public ILaunch getLaunch();
}