Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.examples.ui/plugin.xml')
-rw-r--r--org.eclipse.debug.examples.ui/plugin.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/org.eclipse.debug.examples.ui/plugin.xml b/org.eclipse.debug.examples.ui/plugin.xml
index 524c4ffa6..a755e78b2 100644
--- a/org.eclipse.debug.examples.ui/plugin.xml
+++ b/org.eclipse.debug.examples.ui/plugin.xml
@@ -284,4 +284,35 @@
</enablement>
</detailFactories>
</extension>
+ <extension point="org.eclipse.debug.ui.toggleBreakpointsTargetFactories">
+ <toggleTargetFactory
+ id="org.eclipse.debug.examples.ui.pda.ToggleWatchpointsTargetFactory"
+ class="org.eclipse.debug.examples.ui.pda.breakpoints.PDAToggleWatchpointsTargetFactory">
+ <enablement>
+ <!-- Test the active debug context. Enable only if the context is a PDA
+ element , or if there is no debug context (with a debug model) selected. -->
+ <with variable="debugContext">
+ <iterate>
+ <or>
+ <test property="org.eclipse.debug.ui.getModelIdentifier" value="pda.debugModel"/>
+ <test property="org.eclipse.debug.ui.getModelIdentifier" value=""/>
+ </or>
+ </iterate>
+ </with>
+ <!-- If the debug context matches or if there is no active debug
+ context. Enable the breakpoint toggle for PDA's editor -->
+ <or>
+ <instanceof value="org.eclipse.debug.examples.ui.pda.editor.PDAEditor"/>
+ <with variable="selection">
+ <count value="1"/>
+ <iterate>
+ <or>
+ <instanceof value="org.eclipse.debug.examples.core.pda.model.PDAVariable"/>
+ </or>
+ </iterate>
+ </with>
+ </or>
+ </enablement>
+ </toggleTargetFactory>
+ </extension>
</plugin>

Back to the top