Class DebugThread

java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.emf.mwe.internal.ui.debug.model.DebugElement
org.eclipse.emf.mwe.internal.ui.debug.model.DebugThread
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 DebugThread extends DebugElement implements org.eclipse.debug.core.model.IThread
MWE Debug Thread implementation
For Info: A debug thread handles the stepping commands and holds the DebugStackFrames
  • Constructor Details

  • Method Details

    • hasStackFrames

      public boolean hasStackFrames()
      Specified by:
      hasStackFrames in interface org.eclipse.debug.core.model.IThread
    • getStackFrames

      public org.eclipse.debug.core.model.IStackFrame[] getStackFrames()
      Specified by:
      getStackFrames in interface org.eclipse.debug.core.model.IThread
    • getTopStackFrame

      public org.eclipse.debug.core.model.IStackFrame getTopStackFrame()
      Specified by:
      getTopStackFrame in interface org.eclipse.debug.core.model.IThread
    • getStackFramePeek

      public DebugStackFrame getStackFramePeek()
    • getSetVarFrameId

      public int getSetVarFrameId(DebugStackFrame frame)
    • getVarFrameId

      public int getVarFrameId()
    • clearStack

      public void clearStack(int cleanStackLevel)
    • pushStackFrames

      public void pushStackFrames(List<SyntaxElement> list)
    • setVariablesDirty

      public void setVariablesDirty()
    • getBreakpoints

      public org.eclipse.debug.core.model.IBreakpoint[] getBreakpoints()
      Specified by:
      getBreakpoints in interface org.eclipse.debug.core.model.IThread
    • setBreakpoint

      public void setBreakpoint(MWEBreakpoint bp)
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface org.eclipse.debug.core.model.IThread
    • getName

      public String getName()
      Specified by:
      getName in interface org.eclipse.debug.core.model.IThread
    • getState

      public String getState()
    • isStepping

      public boolean isStepping()
      Specified by:
      isStepping in interface org.eclipse.debug.core.model.IStep
    • setStepping

      public void setStepping(boolean stepping)
    • canStepInto

      public boolean canStepInto()
      Specified by:
      canStepInto in interface org.eclipse.debug.core.model.IStep
    • stepInto

      public void stepInto() throws org.eclipse.debug.core.DebugException
      Specified by:
      stepInto in interface org.eclipse.debug.core.model.IStep
      Throws:
      org.eclipse.debug.core.DebugException
    • canStepOver

      public boolean canStepOver()
      Specified by:
      canStepOver in interface org.eclipse.debug.core.model.IStep
    • stepOver

      public void stepOver() throws org.eclipse.debug.core.DebugException
      Specified by:
      stepOver in interface org.eclipse.debug.core.model.IStep
      Throws:
      org.eclipse.debug.core.DebugException
    • canStepReturn

      public boolean canStepReturn()
      Specified by:
      canStepReturn in interface org.eclipse.debug.core.model.IStep
    • stepReturn

      public void stepReturn() throws org.eclipse.debug.core.DebugException
      Specified by:
      stepReturn in interface org.eclipse.debug.core.model.IStep
      Throws:
      org.eclipse.debug.core.DebugException
    • canSuspend

      public boolean canSuspend()
      Specified by:
      canSuspend in interface org.eclipse.debug.core.model.ISuspendResume
    • isSuspended

      public boolean isSuspended()
      Specified by:
      isSuspended in interface org.eclipse.debug.core.model.ISuspendResume
    • suspend

      public void suspend() throws org.eclipse.debug.core.DebugException
      Specified by:
      suspend in interface org.eclipse.debug.core.model.ISuspendResume
      Throws:
      org.eclipse.debug.core.DebugException
    • canResume

      public boolean canResume()
      Specified by:
      canResume in interface org.eclipse.debug.core.model.ISuspendResume
    • resume

      public void resume() throws org.eclipse.debug.core.DebugException
      Specified by:
      resume in interface org.eclipse.debug.core.model.ISuspendResume
      Throws:
      org.eclipse.debug.core.DebugException
    • canTerminate

      public boolean canTerminate()
      Specified by:
      canTerminate in interface org.eclipse.debug.core.model.ITerminate
    • isTerminated

      public boolean isTerminated()
      Specified by:
      isTerminated in interface org.eclipse.debug.core.model.ITerminate
    • terminate

      public void terminate() throws org.eclipse.debug.core.DebugException
      Specified by:
      terminate in interface org.eclipse.debug.core.model.ITerminate
      Throws:
      org.eclipse.debug.core.DebugException