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)
Runs the operation reporting progress to and accepting
cancellation requests from the given progress monitor.
|
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
IWorkspaceRunnable
Implementors of this method should check the progress monitor
for cancellation when it is safe and appropriate to do so. The cancellation
request should be propagated to the caller by throwing
OperationCanceledException
.
run
in interface IWorkspaceRunnable
monitor
- a progress monitor, or null
if progress
reporting and cancellation are not desiredCoreException
- if this operation fails.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.