public interface IToggleBreakpointsTargetFactory
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
,
IToggleBreakpointsTargetManager
Modifier and Type | Method and Description |
---|---|
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<String> |
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.
|
Set<String> getToggleTargets(IWorkbenchPart part, ISelection selection)
part
- The active part.selection
- The current selectionString
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 selectionnull
IToggleBreakpointsTarget createToggleTarget(String targetID)
getToggleTargets(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
).targetID
- The id of the toggle target to be creatednull
if one could not be createdString getToggleTargetName(String targetID)
targetID
- toggle breakpoints target identifier
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.