Package org.eclipse.m2m.atl.debug.core
Class AtlThread
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.m2m.atl.debug.core.AtlDebugElement
-
- org.eclipse.m2m.atl.debug.core.AtlThread
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,org.eclipse.debug.core.model.IDebugElement,org.eclipse.debug.core.model.IStep,org.eclipse.debug.core.model.ISuspendResume,org.eclipse.debug.core.model.ITerminate,org.eclipse.debug.core.model.IThread
public class AtlThread extends AtlDebugElement implements org.eclipse.debug.core.model.IThread
The ATL thread definition (for debug).
-
-
Field Summary
-
Fields inherited from class org.eclipse.m2m.atl.debug.core.AtlDebugElement
fTarget
-
-
Constructor Summary
Constructors Constructor Description AtlThread(java.lang.String name, AtlDebugTarget atlDT)COnstructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanResume()booleancanStepInto()booleancanStepOver()booleancanStepReturn()booleancanSuspend()booleancanTerminate()org.eclipse.debug.core.model.IBreakpoint[]getBreakpoints()org.eclipse.debug.core.model.IDebugTargetgetDebugTarget()org.eclipse.debug.core.ILaunchgetLaunch()java.lang.StringgetName()intgetPriority()org.eclipse.debug.core.model.IStackFrame[]getStackFrames()org.eclipse.debug.core.model.IStackFramegetTopStackFrame()booleanhasStackFrames()booleanisStepping()booleanisSuspended()booleanisTerminated()voidresume()voidsetStackFrames(AtlStackFrame[] frames)This method allow to update the array of stackFrames.voidstepInto()voidstepOver()voidstepReturn()voidsuspend()voidterminate()-
Methods inherited from class org.eclipse.m2m.atl.debug.core.AtlDebugElement
abort, getAdapter, getModelIdentifier
-
-
-
-
Constructor Detail
-
AtlThread
public AtlThread(java.lang.String name, AtlDebugTarget atlDT)COnstructor.- Parameters:
name- the thread nameatlDT- the debug target
-
-
Method Detail
-
getStackFrames
public org.eclipse.debug.core.model.IStackFrame[] getStackFrames() throws org.eclipse.debug.core.DebugException- Specified by:
getStackFramesin interfaceorg.eclipse.debug.core.model.IThread- Throws:
org.eclipse.debug.core.DebugException- See Also:
IThread.getStackFrames()
-
hasStackFrames
public boolean hasStackFrames() throws org.eclipse.debug.core.DebugException- Specified by:
hasStackFramesin interfaceorg.eclipse.debug.core.model.IThread- Throws:
org.eclipse.debug.core.DebugException- See Also:
IThread.hasStackFrames()
-
getPriority
public int getPriority() throws org.eclipse.debug.core.DebugException- Specified by:
getPriorityin interfaceorg.eclipse.debug.core.model.IThread- Throws:
org.eclipse.debug.core.DebugException- See Also:
IThread.getPriority()
-
getTopStackFrame
public org.eclipse.debug.core.model.IStackFrame getTopStackFrame() throws org.eclipse.debug.core.DebugException- Specified by:
getTopStackFramein interfaceorg.eclipse.debug.core.model.IThread- Throws:
org.eclipse.debug.core.DebugException- See Also:
IThread.getTopStackFrame()
-
getName
public java.lang.String getName() throws org.eclipse.debug.core.DebugException- Specified by:
getNamein interfaceorg.eclipse.debug.core.model.IThread- Throws:
org.eclipse.debug.core.DebugException- See Also:
IThread.getName()
-
getBreakpoints
public org.eclipse.debug.core.model.IBreakpoint[] getBreakpoints()
- Specified by:
getBreakpointsin interfaceorg.eclipse.debug.core.model.IThread- See Also:
IThread.getBreakpoints()
-
getDebugTarget
public org.eclipse.debug.core.model.IDebugTarget getDebugTarget()
- Specified by:
getDebugTargetin interfaceorg.eclipse.debug.core.model.IDebugElement- Overrides:
getDebugTargetin classAtlDebugElement- See Also:
AtlDebugElement.getDebugTarget()
-
getLaunch
public org.eclipse.debug.core.ILaunch getLaunch()
- Specified by:
getLaunchin interfaceorg.eclipse.debug.core.model.IDebugElement- Overrides:
getLaunchin classAtlDebugElement- See Also:
AtlDebugElement.getLaunch()
-
canResume
public boolean canResume()
- Specified by:
canResumein interfaceorg.eclipse.debug.core.model.ISuspendResume- See Also:
ISuspendResume.canResume()
-
canSuspend
public boolean canSuspend()
- Specified by:
canSuspendin interfaceorg.eclipse.debug.core.model.ISuspendResume- See Also:
ISuspendResume.canSuspend()
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspendedin interfaceorg.eclipse.debug.core.model.ISuspendResume- See Also:
ISuspendResume.isSuspended()
-
resume
public void resume() throws org.eclipse.debug.core.DebugException- Specified by:
resumein interfaceorg.eclipse.debug.core.model.ISuspendResume- Throws:
org.eclipse.debug.core.DebugException- See Also:
ISuspendResume.resume()
-
suspend
public void suspend() throws org.eclipse.debug.core.DebugException- Specified by:
suspendin interfaceorg.eclipse.debug.core.model.ISuspendResume- Throws:
org.eclipse.debug.core.DebugException- See Also:
ISuspendResume.suspend()
-
canStepInto
public boolean canStepInto()
- Specified by:
canStepIntoin interfaceorg.eclipse.debug.core.model.IStep- See Also:
IStep.canStepInto()
-
canStepOver
public boolean canStepOver()
- Specified by:
canStepOverin interfaceorg.eclipse.debug.core.model.IStep- See Also:
IStep.canStepOver()
-
canStepReturn
public boolean canStepReturn()
- Specified by:
canStepReturnin interfaceorg.eclipse.debug.core.model.IStep- See Also:
IStep.canStepReturn()
-
isStepping
public boolean isStepping()
- Specified by:
isSteppingin interfaceorg.eclipse.debug.core.model.IStep- See Also:
IStep.isStepping()
-
stepInto
public void stepInto() throws org.eclipse.debug.core.DebugException- Specified by:
stepIntoin interfaceorg.eclipse.debug.core.model.IStep- Throws:
org.eclipse.debug.core.DebugException- See Also:
IStep.stepInto()
-
stepOver
public void stepOver() throws org.eclipse.debug.core.DebugException- Specified by:
stepOverin interfaceorg.eclipse.debug.core.model.IStep- Throws:
org.eclipse.debug.core.DebugException- See Also:
IStep.stepOver()
-
stepReturn
public void stepReturn() throws org.eclipse.debug.core.DebugException- Specified by:
stepReturnin interfaceorg.eclipse.debug.core.model.IStep- Throws:
org.eclipse.debug.core.DebugException- See Also:
IStep.stepReturn()
-
canTerminate
public boolean canTerminate()
- Specified by:
canTerminatein interfaceorg.eclipse.debug.core.model.ITerminate- See Also:
ITerminate.canTerminate()
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminatedin interfaceorg.eclipse.debug.core.model.ITerminate- See Also:
ITerminate.isTerminated()
-
terminate
public void terminate() throws org.eclipse.debug.core.DebugException- Specified by:
terminatein interfaceorg.eclipse.debug.core.model.ITerminate- Throws:
org.eclipse.debug.core.DebugException- See Also:
ITerminate.terminate()
-
setStackFrames
public void setStackFrames(AtlStackFrame[] frames)
This method allow to update the array of stackFrames.- Parameters:
frames- the frames to update
-
-