com.bluemarsh.jswat.action
Class StepAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--com.bluemarsh.jswat.action.JSwatAction
              |
              +--com.bluemarsh.jswat.action.StepAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
FinishAction, NextAction, NextiAction, RefreshAction, StepiAction

public class StepAction
extends JSwatAction

Implements the step action.

Version:
1.0 8/29/99
Author:
Nathan Fiedler
See Also:
Serialized Form

Fields inherited from class com.bluemarsh.jswat.action.JSwatAction
swat
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
StepAction()
          Creates a new StepAction object with the default action command string of "step".
StepAction(java.lang.String name)
          Creates a new StepAction object with the given action command string.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Performs the step action.
protected  void clearPreviousStep(com.sun.jdi.VirtualMachine vm, com.sun.jdi.ThreadReference thread)
          Clear any step requests that may still be associated with the given thread.
protected  boolean step(Session session, int size, int depth)
          Perform a general step operation.
 
Methods inherited from class com.bluemarsh.jswat.action.JSwatAction
displayError, getFrame, getSession
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepAction

public StepAction()
Creates a new StepAction object with the default action command string of "step".

StepAction

public StepAction(java.lang.String name)
Creates a new StepAction object with the given action command string.
Parameters:
name - Name of the step action.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Performs the step action.
Overrides:
actionPerformed in class javax.swing.AbstractAction
Parameters:
event - action event

clearPreviousStep

protected void clearPreviousStep(com.sun.jdi.VirtualMachine vm,
                                 com.sun.jdi.ThreadReference thread)
Clear any step requests that may still be associated with the given thread.
Parameters:
vm - Virtual Machine
thread - Thread on which to remove step requests.

step

protected boolean step(Session session,
                       int size,
                       int depth)
Perform a general step operation.
Parameters:
session - JSwat session on which to operate.
size - How much to step.
depth - How exactly to step.
Returns:
True if successful, false if error.