public class RunToLineHandler extends Object implements IDebugEventSetListener, IBreakpointManagerListener, IWorkspaceRunnable
Clients may instantiate this class.
Constructor and Description |
---|
RunToLineHandler(IDebugTarget target,
ISuspendResume suspendResume,
IBreakpoint breakpoint)
Constructs a handler to perform a run to line operation.
|
Modifier and Type | Method and Description |
---|---|
void |
breakpointManagerEnablementChanged(boolean enabled)
Notifies the listener that the breakpoint manager's enablement
has changed.
|
void |
cancel()
Cancels the run to line operation.
|
void |
handleDebugEvents(DebugEvent[] events)
Notifies this listener of the given debug events.
|
void |
run(IProgressMonitor monitor)
Executes this runnable.
|
public RunToLineHandler(IDebugTarget target, ISuspendResume suspendResume, IBreakpoint breakpoint)
target
- the debug target in which the operation is to be performedsuspendResume
- the element to be resumed to begin the operationbreakpoint
- the run to line breakpointpublic void handleDebugEvents(DebugEvent[] events)
IDebugEventSetListener
handleDebugEvents
in interface IDebugEventSetListener
events
- the debug eventspublic void breakpointManagerEnablementChanged(boolean enabled)
IBreakpointManagerListener
breakpointManagerEnablementChanged
in interface IBreakpointManagerListener
enabled
- whether or not the breakpoint manager is enabledpublic void cancel()
public void run(IProgressMonitor monitor) throws CoreException
ICoreRunnable
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
an OperationCanceledException
. A CoreException
with a status
of severity IStatus.CANCEL
has the same effect as
an OperationCanceledException
.
run
in interface IWorkspaceRunnable
run
in interface ICoreRunnable
monitor
- a progress monitor, or null
if 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, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.