public interface IToggleBreakpointsTargetManager
getDefault()
method.
The adapter mechanism for obtaining a toggle breakpoints target is still supported through a specialized toggle target factory. Targets contributed through this mechanism are labeled as "Default" in the UI.
Clients should call DebugUITools.getToggleBreakpointsTargetManager()
for an instance of this instance.
IToggleBreakpointsTargetFactory
,
IToggleBreakpointsTarget
,
IToggleBreakpointsTargetExtension
Modifier and Type | Method and Description |
---|---|
void |
addChangedListener(IToggleBreakpointsTargetManagerListener listener)
Adds the given listener to the list of listeners notified when the preferred
toggle breakpoints targets change.
|
Set<String> |
getEnabledToggleBreakpointsTargetIDs(IWorkbenchPart part,
ISelection selection)
Returns the set of
String IDs of toggle breakpoint targets,
which are enabled for the given active part and selection. |
String |
getPreferredToggleBreakpointsTargetID(IWorkbenchPart part,
ISelection selection)
Returns the ID of the calculated preferred toggle breakpoints target for the
given active part and selection.
|
IToggleBreakpointsTarget |
getToggleBreakpointsTarget(IWorkbenchPart part,
ISelection selection)
Given the ID of toggle breakpoint target, this method will try to find the factory
that creates it and return an instance of it.
|
String |
getToggleBreakpointsTargetDescription(String id)
Given the ID of a toggle breakpoints target, this method will try
to find the factory that creates it and ask it for the description of it.
|
String |
getToggleBreakpointsTargetName(String id)
Given the ID of a toggle breakpoints target, this method will try
to find the factory that creates it and ask it for the name of it.
|
void |
removeChangedListener(IToggleBreakpointsTargetManagerListener listener)
Removes the given listener from the list of listeners notified when the preferred
toggle breakpoints targets change.
|
Set<String> getEnabledToggleBreakpointsTargetIDs(IWorkbenchPart part, ISelection selection)
String
IDs of toggle breakpoint targets,
which are enabled for the given active part and selection. The IDs can be used
to create the IToggleBreakpointsTarget
instance.part
- active partselection
- active selection in partString getPreferredToggleBreakpointsTargetID(IWorkbenchPart part, ISelection selection)
part
- active partselection
- active selection in partIToggleBreakpointsTarget getToggleBreakpointsTarget(IWorkbenchPart part, ISelection selection)
part
- The workbench part in which toggle target is to be usedselection
- The active selection to use with toggle targetString getToggleBreakpointsTargetName(String id)
id
- The ID of the requested toggle breakpoint target.String getToggleBreakpointsTargetDescription(String id)
id
- The ID of the requested toggle breakpoint target.void addChangedListener(IToggleBreakpointsTargetManagerListener listener)
listener
- The listener to add.void removeChangedListener(IToggleBreakpointsTargetManagerListener listener)
listener
- The listener to add.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.