org.eclipse.emf.mwe.internal.ui.debug.model
Class DebugStackFrame

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.emf.mwe.internal.ui.debug.model.DebugElement
          extended by org.eclipse.emf.mwe.internal.ui.debug.model.DebugStackFrame
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IStackFrame, org.eclipse.debug.core.model.IStep, org.eclipse.debug.core.model.ISuspendResume, org.eclipse.debug.core.model.ITerminate

public class DebugStackFrame
extends DebugElement
implements org.eclipse.debug.core.model.IStackFrame

MWE Debug StackFrame implementation.
Each debugger step is represented by a stack frame. It holds the variables that belong to that frame. It provides all information important for the Source code display.

For Info: In the MWE debug model all processing methods are delegated either to DebugTarget or DebugThread.


Field Summary
 
Fields inherited from class org.eclipse.emf.mwe.internal.ui.debug.model.DebugElement
target
 
Constructor Summary
DebugStackFrame(DebugThread thread, SyntaxElement to)
           
 
Method Summary
 boolean canResume()
           
 boolean canStepInto()
           
 boolean canStepOver()
           
 boolean canStepReturn()
           
 boolean canSuspend()
           
 boolean canTerminate()
           
 int getCharEnd()
           
 int getCharStart()
           
 int getFrameId()
           
 int getLineNumber()
           
 java.lang.String getName()
           
 org.eclipse.debug.core.model.IRegisterGroup[] getRegisterGroups()
           
 java.lang.String getResource()
           
 org.eclipse.debug.core.model.IThread getThread()
           
 java.lang.String getType()
           
 org.eclipse.debug.core.model.IVariable[] getVariables()
           
 boolean hasRegisterGroups()
           
 boolean hasVariables()
           
 boolean isStepping()
           
 boolean isSuspended()
           
 boolean isTerminated()
           
 boolean isVisible()
           
 void resume()
           
 void setVariablesDirty()
           
 void stepInto()
           
 void stepOver()
           
 void stepReturn()
           
 void suspend()
           
 void terminate()
           
 
Methods inherited from class org.eclipse.emf.mwe.internal.ui.debug.model.DebugElement
getAdapter, getDebugModelManager, getDebugTarget, getDebugTarget0, getLaunch, getModelIdentifier
 
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
getDebugTarget, getLaunch, getModelIdentifier
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

DebugStackFrame

public DebugStackFrame(DebugThread thread,
                       SyntaxElement to)
Method Detail

getThread

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

getVariables

public org.eclipse.debug.core.model.IVariable[] getVariables()
                                                      throws org.eclipse.debug.core.DebugException
Specified by:
getVariables in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

hasVariables

public boolean hasVariables()
                     throws org.eclipse.debug.core.DebugException
Specified by:
hasVariables in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

setVariablesDirty

public void setVariablesDirty()

getName

public java.lang.String getName()
Specified by:
getName in interface org.eclipse.debug.core.model.IStackFrame

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface org.eclipse.debug.core.model.IStackFrame

getCharStart

public int getCharStart()
Specified by:
getCharStart in interface org.eclipse.debug.core.model.IStackFrame

getCharEnd

public int getCharEnd()
Specified by:
getCharEnd in interface org.eclipse.debug.core.model.IStackFrame

getResource

public java.lang.String getResource()

getType

public java.lang.String getType()

getFrameId

public int getFrameId()

isVisible

public boolean isVisible()

getRegisterGroups

public org.eclipse.debug.core.model.IRegisterGroup[] getRegisterGroups()
Specified by:
getRegisterGroups in interface org.eclipse.debug.core.model.IStackFrame

hasRegisterGroups

public boolean hasRegisterGroups()
Specified by:
hasRegisterGroups in interface org.eclipse.debug.core.model.IStackFrame

isStepping

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

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