public interface IRunToLineTarget
IAdaptable
) of this type.
This allows the platform to provide one command and key binding for
the "run to line" function to be shared by many debuggers.
When a part is activated, a retargettable action asks the part
for its IRunToLineTarget
adapter. If one exists,
that adapter is delegated to to perform "run to line" operations when
the user invokes an associated action. If an adapter does not exist
for the part, the retargettable actions asks selected objects in the
active part for an adapter. Generally, a debug implementation will
provide breakpoint adapters for relevant editors and model objects.
Clients are intended to implement this interface and provide instances as an adapter on applicable parts (for example, editors) that support the operation.
Modifier and Type | Method and Description |
---|---|
boolean |
canRunToLine(IWorkbenchPart part,
ISelection selection,
ISuspendResume target)
Returns whether a run to line operation can be performed on the given
element that is currently selected and suspended in the Debug view.
|
void |
runToLine(IWorkbenchPart part,
ISelection selection,
ISuspendResume target)
Perform a run to line operation on the given element that is
currently selected and suspended in the Debug view.
|
void runToLine(IWorkbenchPart part, ISelection selection, ISuspendResume target) throws CoreException
IDebugUIConstants.PREF_SKIP_BREAKPOINTS_DURING_RUN_TO_LINE
.part
- the part on which the action has been invokedselection
- the selection on which the action has been invokedtarget
- suspended element to perform the "run to line" action onCoreException
- if unable to perform the actionboolean canRunToLine(IWorkbenchPart part, ISelection selection, ISuspendResume target)
part
- the part on which the action has been invokedselection
- the selection on which the action has been invokedtarget
- suspended element to perform the "run to line" action on
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.