Class RunToLineHandler

  • All Implemented Interfaces:
    IWorkspaceRunnable, ICoreRunnable, IBreakpointManagerListener, IDebugEventSetListener

    public class RunToLineHandler
    extends java.lang.Object
    implements IDebugEventSetListener, IBreakpointManagerListener, IWorkspaceRunnable
    Handles a run to line operation. Clients implementing a run to line action can use this handler to carry out a run to line operation implemented with a breakpoint. Handles the user preference to skip breakpoints while performing a run to line operation, and cancelling the run to line operation if another breakpoint is encountered before the operation is completed.

    Clients may instantiate this class.

    Since:
    3.1
    Restriction:
    This class is not intended to be subclassed by clients.
    • Constructor Detail

      • RunToLineHandler

        public RunToLineHandler​(IDebugTarget target,
                                ISuspendResume suspendResume,
                                IBreakpoint breakpoint)
        Constructs a handler to perform a run to line operation.
        Parameters:
        target - the debug target in which the operation is to be performed
        suspendResume - the element to be resumed to begin the operation
        breakpoint - the run to line breakpoint
    • Method Detail

      • handleDebugEvents

        public void handleDebugEvents​(DebugEvent[] events)
        Description copied from interface: IDebugEventSetListener
        Notifies this listener of the given debug events. All of the events in the given event collection occurred at the same location the program be run or debugged.
        Specified by:
        handleDebugEvents in interface IDebugEventSetListener
        Parameters:
        events - the debug events
      • cancel

        public void cancel()
        Cancels the run to line operation.