|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IToggleBreakpointsTargetFactory
A toggle breakpoints target factory creates one or more toggle breakpoint targets. The toggle breakpoints targets are used by toggle breakpoint actions to create breakpoints appropriate for the active editor, debug session, project, or selection.
Toggle breakpoints target factories are contributed via the
org.eclipse.debug.ui.toggleBreakpointsTargetFactories
extension point. Following is an example of a detail pane factory extension:
<extension point="org.eclipse.debug.ui.toggleBreakpointsTargetFactories"> <toggleTargetFactory id="com.example.ExampleBreakpointToggleTargetFactory" class="com.example.BreakpointToggleTargetFactory"> <enablement> <!-- Test the active debug context. Enable only if the active context is an element from "Example" debugger, or if there is no debug context associated with the context element. Also enable if debug context is empty --> <with variable="debugContext"> <iterate> <or> <test property="org.eclipse.debug.ui.getModelIdentifier" value="com.example.model"/> <test property="org.eclipse.debug.ui.getModelIdentifier" value=""/> </or> </iterate> </with> <!-- If there is no active debug context. Enable the breakpoint toggle for the "Example" editors --> <instanceof value="com.example.Editor"/> </enablement> </toggleTargetFactory> </extension>
Clients contributing a toggle breakpoints target factory are intended to implement this interface.
IToggleBreakpointsTarget
,
IToggleBreakpointsTargetExtension
,
ToggleBreakpointsTargetManager
Method Summary | |
---|---|
IToggleBreakpointsTarget |
createToggleTarget(String targetID)
Creates and returns a toggle breakpoint target corresponding to the given identifier that this factory can produce (according to getToggleTargets(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection) ). |
String |
getDefaultToggleTarget(IWorkbenchPart part,
ISelection selection)
Returns the identifier of the default toggle breakpoints target to use for the given selection, or null if this factory has no
preference. |
String |
getToggleTargetDescription(String targetID)
Returns a description for the breakpoint toggle target associated with the given ID or null if none. |
String |
getToggleTargetName(String targetID)
Returns a human readable name for the breakpoint toggle target associated with the given ID. |
Set |
getToggleTargets(IWorkbenchPart part,
ISelection selection)
Returns all possible types of toggle breakpoints targets that this factory can create for the given selection and part, possibly empty. |
Method Detail |
---|
Set getToggleTargets(IWorkbenchPart part, ISelection selection)
part
- The active part.selection
- The current selection
String
IDs for possible toggle breakpoint
targets, possibly emptyString getDefaultToggleTarget(IWorkbenchPart part, ISelection selection)
null
if this factory has no
preference.
part
- The active part.selection
- The current selection
null
IToggleBreakpointsTarget createToggleTarget(String targetID)
getToggleTargets(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
).
targetID
- The id of the toggle target to be created
null
if one could not be createdString getToggleTargetName(String targetID)
targetID
- toggle breakpoints target identifier
String getToggleTargetDescription(String targetID)
null
if none.
targetID
- toggle breakpoints target identifier
null
if none
|
Eclipse Platform Release 3.6 |
|||||||||
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, 2010. All rights reserved.