Package org.eclipse.debug.ui.actions
Class RunToLineHandler
java.lang.Object
org.eclipse.debug.ui.actions.RunToLineHandler
- All Implemented Interfaces:
- IWorkspaceRunnable,- ICoreRunnable,- IBreakpointManagerListener,- IDebugEventSetListener
public class RunToLineHandler
extends 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 SummaryConstructorsConstructorDescriptionRunToLineHandler(IDebugTarget target, ISuspendResume suspendResume, IBreakpoint breakpoint) Constructs a handler to perform a run to line operation.
- 
Method SummaryModifier and TypeMethodDescriptionvoidbreakpointManagerEnablementChanged(boolean enabled) Notifies the listener that the breakpoint manager's enablement has changed.voidcancel()Cancels the run to line operation.voidhandleDebugEvents(DebugEvent[] events) Notifies this listener of the given debug events.voidrun(IProgressMonitor monitor) Executes this runnable.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.debug.core.IBreakpointManagerListenerbreakpointManagerTriggerPointChanged
- 
Constructor Details- 
RunToLineHandlerConstructs 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 Details- 
handleDebugEventsDescription copied from interface:IDebugEventSetListenerNotifies 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:
- handleDebugEventsin interface- IDebugEventSetListener
- Parameters:
- events- the debug events
 
- 
breakpointManagerEnablementChangedpublic void breakpointManagerEnablementChanged(boolean enabled) Description copied from interface:IBreakpointManagerListenerNotifies the listener that the breakpoint manager's enablement has changed.- Specified by:
- breakpointManagerEnablementChangedin interface- IBreakpointManagerListener
- Parameters:
- enabled- whether or not the breakpoint manager is enabled
 
- 
cancelpublic void cancel()Cancels the run to line operation.
- 
runDescription copied from interface:ICoreRunnableExecutes this runnable.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. ACoreExceptionwith a status of severityIStatus.CANCELhas the same effect as anOperationCanceledException.- Specified by:
- runin interface- ICoreRunnable
- Specified by:
- runin interface- IWorkspaceRunnable
- Parameters:
- 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.
- Throws:
- CoreException- if this operation fails
 
 
-