public class RunToLineHandler extends Object implements IDebugEventSetListener, IBreakpointManagerListener, IWorkspaceRunnable
Clients may instantiate this class.
|Constructor and Description|
Constructs a handler to perform a run to line operation.
|Modifier and Type||Method and Description|
Notifies the listener that the breakpoint manager's enablement has changed.
Cancels the run to line operation.
Notifies this listener of the given debug events.
Executes this runnable.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RunToLineHandler(IDebugTarget target, ISuspendResume suspendResume, IBreakpoint breakpoint)
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
public void handleDebugEvents(DebugEvent events)
public void breakpointManagerEnablementChanged(boolean enabled)
public void cancel()
public void run(IProgressMonitor monitor) throws CoreException
The provided monitor can be used to report progress and respond to
cancellation. If the progress monitor has been canceled, the runnable
should finish its execution at the earliest convenience and throw
CoreException with a status
IStatus.CANCEL has the same effect as
monitor- a progress monitor, or
nullif progress reporting and cancellation are not desired. The monitor is only valid for the duration of the invocation of this method. Callers may call
IProgressMonitor.done()after this method returns or throws an exception, but this is not strictly required.
CoreException- if this operation fails
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.