|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.cdt.debug.internal.core.model.CDebugElement
public abstract class CDebugElement
The super class of all C/C++ debug model elements.
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElementStatus |
---|
ERROR, OK, WARNING |
Constructor Summary | |
---|---|
CDebugElement(CDebugTarget target)
Constructor for CDebugElement. |
Method Summary | |
---|---|
org.eclipse.debug.core.DebugEvent |
createChangeEvent(int detail)
|
org.eclipse.debug.core.DebugEvent |
createCreateEvent()
|
org.eclipse.debug.core.DebugEvent |
createResumeEvent(int detail)
|
org.eclipse.debug.core.DebugEvent |
createSuspendEvent(int detail)
|
org.eclipse.debug.core.DebugEvent |
createTerminateEvent()
|
void |
fireChangeEvent(int detail)
Fires a debug event marking the CHANGE of this element with the specifed detail code. |
void |
fireCreationEvent()
Fires a debug event marking the creation of this element. |
void |
fireResumeEvent(int detail)
Fires a debug event marking the RESUME of this element with the associated detail. |
void |
fireSuspendEvent(int detail)
Fires a debug event marking the SUSPEND of this element with the associated detail. |
void |
fireTerminateEvent()
Fires a debug event marking the termination of this element. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
org.eclipse.cdt.debug.core.cdi.ICDISession |
getCDISession()
Returns the CDI session associated with this element. |
org.eclipse.cdt.debug.core.cdi.model.ICDITarget |
getCDITarget()
Returns the underlying CDI target associated with this element. |
java.lang.Object |
getCurrentStateInfo()
Returns the info object associated with the current state. |
org.eclipse.debug.core.model.IDebugTarget |
getDebugTarget()
|
org.eclipse.debug.core.ILaunch |
getLaunch()
|
java.lang.String |
getMessage()
Returns the message describing the outcome. |
java.lang.String |
getModelIdentifier()
|
int |
getSeverity()
Returns the severity. |
CDebugElementState |
getState()
Returns the current state of this element. |
boolean |
isOK()
Returns whether this status indicates everything is okay (neither warning, nor error). |
static void |
notSupported(java.lang.String message)
Throws a new debug exception with a status code of NOT_SUPPORTED . |
static void |
requestFailed(java.lang.String message,
java.lang.Exception e)
Throws a new debug exception with a status code of REQUEST_FAILED . |
static void |
requestFailed(java.lang.String message,
java.lang.Throwable e,
int code)
Throws a new debug exception with the given status code. |
static void |
targetRequestFailed(java.lang.String message,
org.eclipse.cdt.debug.core.cdi.CDIException e)
Throws a new debug exception with a status code of TARGET_REQUEST_FAILED with the given underlying exception. |
static void |
targetRequestFailed(java.lang.String message,
java.lang.Throwable e)
Throws a new debug exception with a status code of TARGET_REQUEST_FAILED . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CDebugElement(CDebugTarget target)
Method Detail |
---|
public java.lang.String getModelIdentifier()
getModelIdentifier
in interface org.eclipse.debug.core.model.IDebugElement
public org.eclipse.debug.core.model.IDebugTarget getDebugTarget()
getDebugTarget
in interface org.eclipse.debug.core.model.IDebugElement
public org.eclipse.debug.core.ILaunch getLaunch()
getLaunch
in interface org.eclipse.debug.core.model.IDebugElement
public void fireCreationEvent()
public org.eclipse.debug.core.DebugEvent createCreateEvent()
public void fireResumeEvent(int detail)
detail
- The int detail of the eventDebugEvent
public org.eclipse.debug.core.DebugEvent createResumeEvent(int detail)
public void fireSuspendEvent(int detail)
detail
- The int detail of the eventDebugEvent
public org.eclipse.debug.core.DebugEvent createSuspendEvent(int detail)
public void fireTerminateEvent()
public org.eclipse.debug.core.DebugEvent createTerminateEvent()
public void fireChangeEvent(int detail)
detail
- one of STATE
or CONTENT
public org.eclipse.debug.core.DebugEvent createChangeEvent(int detail)
public org.eclipse.cdt.debug.core.cdi.ICDISession getCDISession()
public org.eclipse.cdt.debug.core.cdi.model.ICDITarget getCDITarget()
public static void requestFailed(java.lang.String message, java.lang.Exception e) throws org.eclipse.debug.core.DebugException
REQUEST_FAILED
.
message
- Failure messagee
- Exception that has occurred (can be null
)
org.eclipse.debug.core.DebugException
- The exception with a status code of REQUEST_FAILED
public static void targetRequestFailed(java.lang.String message, org.eclipse.cdt.debug.core.cdi.CDIException e) throws org.eclipse.debug.core.DebugException
TARGET_REQUEST_FAILED
with the given underlying exception.
message
- Failure messagee
- underlying exception that has occurred
org.eclipse.debug.core.DebugException
- The exception with a status code of TARGET_REQUEST_FAILED
public static void requestFailed(java.lang.String message, java.lang.Throwable e, int code) throws org.eclipse.debug.core.DebugException
message
- Failure messagee
- Exception that has occurred (can be null
)code
- status code
org.eclipse.debug.core.DebugException
- a new exception with given status codepublic static void targetRequestFailed(java.lang.String message, java.lang.Throwable e) throws org.eclipse.debug.core.DebugException
TARGET_REQUEST_FAILED
.
message
- Failure messagee
- Throwable that has occurred
org.eclipse.debug.core.DebugException
- The exception with a status code of TARGET_REQUEST_FAILED
public static void notSupported(java.lang.String message) throws org.eclipse.debug.core.DebugException
NOT_SUPPORTED
.
message
- Failure message
org.eclipse.debug.core.DebugException
- The exception with a status code of NOT_SUPPORTED
.public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.core.runtime.PlatformObject
public boolean isOK()
ICDebugElementStatus
isOK
in interface ICDebugElementStatus
true
if this status has severity
OK
, and false
otherwisepublic int getSeverity()
ICDebugElementStatus
ERROR
- an errorWARNING
- a warningOK
- everything is just fine
getSeverity
in interface ICDebugElementStatus
OK
, ERROR
,
or WARNING
public java.lang.String getMessage()
ICDebugElementStatus
getMessage
in interface ICDebugElementStatus
public CDebugElementState getState()
ICDebugElement
getState
in interface ICDebugElement
public java.lang.Object getCurrentStateInfo()
ICDebugElement
getCurrentStateInfo
in interface ICDebugElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |