Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2008-10-24 01:11:57 -0400
committerPawel Piech2008-10-24 01:11:57 -0400
commit11d9ef10d10b0d6723d6f42db5c656f30e529fa8 (patch)
tree73ed308dee49923e0f0ff4cb2484cc2597ff0a9c /org.eclipse.debug.examples.ui/plugin.xml
parentca2de530aea0f7ddda0b312ec46958e600da7a96 (diff)
downloadeclipse.platform.debug-11d9ef10d10b0d6723d6f42db5c656f30e529fa8.tar.gz
eclipse.platform.debug-11d9ef10d10b0d6723d6f42db5c656f30e529fa8.tar.xz
eclipse.platform.debug-11d9ef10d10b0d6723d6f42db5c656f30e529fa8.zip
Bug 229219 - Track "debugContext" with the window evaluation context.
Diffstat (limited to 'org.eclipse.debug.examples.ui/plugin.xml')
-rw-r--r--org.eclipse.debug.examples.ui/plugin.xml103
1 files changed, 103 insertions, 0 deletions
diff --git a/org.eclipse.debug.examples.ui/plugin.xml b/org.eclipse.debug.examples.ui/plugin.xml
index a755e78b2..a6e2bb08b 100644
--- a/org.eclipse.debug.examples.ui/plugin.xml
+++ b/org.eclipse.debug.examples.ui/plugin.xml
@@ -315,4 +315,107 @@
</enablement>
</toggleTargetFactory>
</extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ id="org.eclipse.debug.examples.ui.pushCommand"
+ name="Push">
+ </command>
+ <command
+ id="org.eclipse.debug.examples.ui.popCommand"
+ name="Pop">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.handlers">
+ <handler
+ class="org.eclipse.debug.examples.ui.pda.views.PushHandler"
+ commandId="org.eclipse.debug.examples.ui.pushCommand">
+ <enabledWhen>
+ <and>
+ <with variable="activePart">
+ <instanceof value="org.eclipse.debug.examples.ui.pda.views.DataStackView"/>
+ </with>
+ <with variable="debugContext">
+ <count value="1"/>
+ <iterate operator="and">
+ <test property="org.eclipse.debug.ui.getModelIdentifier"
+ value="pda.debugModel">
+ </test>
+ <test property="org.eclipse.debug.examples.ui.canPush"/>
+ </iterate>
+ </with>
+ </and>
+ </enabledWhen>
+ </handler>
+ <handler
+ class="org.eclipse.debug.examples.ui.pda.views.PopHandler"
+ commandId="org.eclipse.debug.examples.ui.popCommand">
+ <enabledWhen>
+ <and>
+ <with variable="activePart">
+ <instanceof value="org.eclipse.debug.examples.ui.pda.views.DataStackView"/>
+ </with>
+ <with variable="debugContext">
+ <count value="1"/>
+ <iterate>
+ <test property="org.eclipse.debug.ui.getModelIdentifier"
+ value="pda.debugModel">
+ </test>
+ </iterate>
+ </with>
+ <with variable="selection">
+ <count value="1"/>
+ </with>
+ </and>
+ </enabledWhen>
+ </handler>
+ </extension>
+ <extension
+ point="org.eclipse.core.expressions.propertyTesters">
+ <propertyTester
+ class="org.eclipse.debug.examples.ui.pda.views.CanPushTester"
+ id="org.eclipse.debug.examples.ui.canPushTester"
+ namespace="org.eclipse.debug.examples.ui"
+ properties="canPush"
+ type="org.eclipse.core.runtime.IAdaptable">
+ </propertyTester>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:pda.dataStackView?after=additions">
+ <command
+ commandId="org.eclipse.debug.examples.ui.pushCommand"
+ disabledIcon="icons/full/dlcl16/push.gif"
+ icon="icons/full/elcl16/push.gif"
+ label="Push"
+ style="push">
+ </command>
+ <command
+ commandId="org.eclipse.debug.examples.ui.popCommand"
+ disabledIcon="icons/full/dlcl16/pop.gif"
+ icon="icons/full/elcl16/pop.gif"
+ label="Pop"
+ style="push">
+ </command>
+ </menuContribution>
+ <menuContribution
+ locationURI="toolbar:pda.dataStackView?after=additions">
+ <command
+ commandId="org.eclipse.debug.examples.ui.pushCommand"
+ disabledIcon="icons/full/dlcl16/push.gif"
+ icon="icons/full/elcl16/push.gif"
+ label="Push"
+ style="push">
+ </command>
+ <command
+ commandId="org.eclipse.debug.examples.ui.popCommand"
+ disabledIcon="icons/full/dlcl16/pop.gif"
+ icon="icons/full/elcl16/pop.gif"
+ label="Pop"
+ style="push">
+ </command>
+ </menuContribution>
+ </extension>
</plugin>

Back to the top