|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.debug.ui.actions.RunToLineHandler
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. This class is not intended to be subclassed.
Constructor Summary | |
---|---|
RunToLineHandler(IDebugTarget target,
ISuspendResume suspendResume,
IBreakpoint breakpoint)
Constructs a handler to perform a run to line operation. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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 breakpointMethod Detail |
public 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 desired
CoreException
- if this operation fails.
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.