|
Eclipse Platform Release 3.1 |
|||||||||||
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.debug.core.model.DebugElement
Implementation of common function for debug elements.
Clients may subclass this class.
Constructor Summary | |
---|---|
DebugElement(IDebugTarget target)
Constructs a debug element referring to an artifact in the given debug target. |
Method Summary | |
---|---|
void |
fireChangeEvent(int detail)
Fires a change event for this debug element with the specified detail code. |
void |
fireCreationEvent()
Fires a creation event for this debug element. |
void |
fireEvent(DebugEvent event)
Fires a debug event. |
void |
fireResumeEvent(int detail)
Fires a resume for this debug element with the specified detail code. |
void |
fireSuspendEvent(int detail)
Fires a suspend event for this debug element with the specified detail code. |
void |
fireTerminateEvent()
Fires a terminate event for this debug element. |
Object |
getAdapter(Class adapter)
Returns an object which is an instance of the given class associated with this object. |
IDebugTarget |
getDebugTarget()
Returns the debug target this element is contained in. |
ILaunch |
getLaunch()
Returns the launch this element is contained in. |
protected void |
notSupported(String message,
Throwable e)
Throws a debug exception with a status code of NOT_SUPPORTED . |
protected void |
requestFailed(String message,
Throwable e)
Throws a debug exception with a status code of TARGET_REQUEST_FAILED . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
---|
getModelIdentifier |
Constructor Detail |
public DebugElement(IDebugTarget target)
target
- debug target containing this elementMethod Detail |
public IDebugTarget getDebugTarget()
IDebugElement
getDebugTarget
in interface IDebugElement
public ILaunch getLaunch()
IDebugElement
getLaunch
in interface IDebugElement
public Object getAdapter(Class adapter)
IAdaptable
null
if
no such object can be found.
getAdapter
in interface IAdaptable
getAdapter
in class PlatformObject
adapter
- the class to adapt to
null
IAdaptable.getAdapter(Class)
,
Platform.getAdapterManager()
public void fireEvent(DebugEvent event)
event
- debug event to firepublic void fireChangeEvent(int detail)
detail
- detail code for the change event,
such as DebugEvent.STATE
or DebugEvent.CONTENT
public void fireCreationEvent()
public void fireResumeEvent(int detail)
detail
- detail code for the resume event, such
as DebugEvent.STEP_OVER
public void fireSuspendEvent(int detail)
detail
- detail code for the suspend event, such
as DebugEvent.BREAKPOINT
public void fireTerminateEvent()
protected void requestFailed(String message, Throwable e) throws DebugException
TARGET_REQUEST_FAILED
.
message
- exception messagee
- underlying exception or null
DebugException
protected void notSupported(String message, Throwable e) throws DebugException
NOT_SUPPORTED
.
message
- exception messagee
- underlying exception or null
DebugException
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.