public interface IToggleBreakpointsTarget
When a part is activated, a retargettable action asks the part
for its IToggleBreakpointTarget
adapter. If one exists,
that adapter is delegated to to perform breakpoint 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) and objects (for example, methods and fields) that support breakpoint toggling.
Modifier and Type | Method and Description |
---|---|
boolean |
canToggleLineBreakpoints(IWorkbenchPart part,
ISelection selection)
Returns whether line breakpoints can be toggled on the given selection.
|
boolean |
canToggleMethodBreakpoints(IWorkbenchPart part,
ISelection selection)
Returns whether method breakpoints can be toggled on the given selection.
|
boolean |
canToggleWatchpoints(IWorkbenchPart part,
ISelection selection)
Returns whether watchpoints can be toggled on the given selection.
|
void |
toggleLineBreakpoints(IWorkbenchPart part,
ISelection selection)
Creates new line breakpoints or removes existing breakpoints.
|
void |
toggleMethodBreakpoints(IWorkbenchPart part,
ISelection selection)
Creates new method breakpoints or removes existing breakpoints.
|
void |
toggleWatchpoints(IWorkbenchPart part,
ISelection selection)
Creates new watchpoints or removes existing breakpoints.
|
void toggleLineBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException
part
- the part on which the action has been invokedselection
- selection on which line breakpoints should be toggledCoreException
- if unable to perform the actionboolean canToggleLineBreakpoints(IWorkbenchPart part, ISelection selection)
part
- the part on which the action has been invokedselection
- selection on which line breakpoints may be toggledvoid toggleMethodBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException
part
- the part on which the action has been invokedselection
- selection on which method breakpoints should be toggledCoreException
- if unable to perform the actionboolean canToggleMethodBreakpoints(IWorkbenchPart part, ISelection selection)
part
- the part on which the action has been invokedselection
- selection on which method breakpoints may be toggledvoid toggleWatchpoints(IWorkbenchPart part, ISelection selection) throws CoreException
part
- the part on which the action has been invokedselection
- selection on which watchpoints should be toggledCoreException
- if unable to perform the actionboolean canToggleWatchpoints(IWorkbenchPart part, ISelection selection)
part
- the part on which the action has been invokedselection
- selection on which watchpoints may be toggled
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.