|
Eclipse Platform Release 4.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IToggleBreakpointsTargetManager
Organizes the toggle breakpoints target factories contributed through the
extension point and keeps track of the toggle breakpoints target that
the factories produce. The manager is accessed as a singleton through
the 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
Method Summary | |
---|---|
void |
addChangedListener(IToggleBreakpointsTargetManagerListener listener)
Adds the given listener to the list of listeners notified when the preferred toggle breakpoints targets change. |
Set |
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. |
Method Detail |
---|
Set 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 part
String getPreferredToggleBreakpointsTargetID(IWorkbenchPart part, ISelection selection)
part
- active partselection
- active selection in part
IToggleBreakpointsTarget getToggleBreakpointsTarget(IWorkbenchPart part, ISelection selection)
part
- The workbench part in which toggle target is to be usedselection
- The active selection to use with toggle target
String 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.
|
Eclipse Platform Release 4.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2012. All rights reserved.