| java.lang.Object edu.rice.cs.drjava.model.debug.jpda.PendingRequestManager
PendingRequestManager | public class PendingRequestManager (Code) | | Keeps track of DocumentDebugActions that are waiting to be resolved when the classes they corresponed to are
prepared. (Only DocumentDebugActions have reference types which can be prepared.)
version: $Id: PendingRequestManager.java 4255 2007-08-28 19:17:37Z mgricken $ |
Method Summary | |
public void | addPendingRequest(DocumentDebugAction> action) | public void | classPrepared(ClassPrepareEvent event) Called by the EventHandler whenever a ClassPrepareEvent occurs.
This will take the event, get the class that was prepared, lookup
the Vector of DebugAction that was waiting for this class's preparation,
iterate through this Vector, and attempt to create the Breakpoints that
were pending. | public void | removePendingRequest(DocumentDebugAction> action) |
addPendingRequest | public void addPendingRequest(DocumentDebugAction> action)(Code) | | Called if a breakpoint is set before its class is prepared
Parameters: action - The DebugAction that is pending |
classPrepared | public void classPrepared(ClassPrepareEvent event) throws DebugException(Code) | | Called by the EventHandler whenever a ClassPrepareEvent occurs.
This will take the event, get the class that was prepared, lookup
the Vector of DebugAction that was waiting for this class's preparation,
iterate through this Vector, and attempt to create the Breakpoints that
were pending. Since the keys to the HashTable are the names of the
outer class, the $ and everything after it must be cropped off from the
class name in order to do the lookup. During the lookup, however, the line
number of each action is checked to see if the line number is contained
in the given event's ReferenceType. If not, we ignore that pending action
since it is not in the class that was just prepared, but may be in one of its
inner classes.
Parameters: event - The ClassPrepareEvent that just occured |
removePendingRequest | public void removePendingRequest(DocumentDebugAction> action)(Code) | | Called if a breakpoint is set and removed before its class is prepared
Parameters: action - The DebugAction that was set and removed |
|
|