Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanimir Agovic2020-04-02 16:52:54 +0000
committerSanimir Agovic2020-04-02 17:00:35 +0000
commita0906530d8e1782e95d7ecbf27382f49fa2ccc31 (patch)
treeadf6b798fdaee7b59a112fd49f5a8035b9a1f2e5 /plugins
parenta89f65cd164286a116c23c9e179ca000bb921dc4 (diff)
downloadorg.eclipse.tcf-a0906530d8e1782e95d7ecbf27382f49fa2ccc31.tar.gz
org.eclipse.tcf-a0906530d8e1782e95d7ecbf27382f49fa2ccc31.tar.xz
org.eclipse.tcf-a0906530d8e1782e95d7ecbf27382f49fa2ccc31.zip
TCF Debugger: restrict reset command visibility
And fix some formatting. Signed-off-by: Sanimir Agovic <sanimir@subpath.org>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/plugin.xml22
1 files changed, 12 insertions, 10 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/plugin.xml b/plugins/org.eclipse.tcf.debug.ui/plugin.xml
index 370391850..d27bef1ca 100644
--- a/plugins/org.eclipse.tcf.debug.ui/plugin.xml
+++ b/plugins/org.eclipse.tcf.debug.ui/plugin.xml
@@ -487,18 +487,13 @@
class="org.eclipse.tcf.internal.debug.ui.commands.ResetHandler"
commandId="org.eclipse.tcf.debug.ui.commands.reset">
<activeWhen>
- <with
- variable="debugContext">
- <iterate
- ifEmpty="false"
- operator="or">
+ <with variable="debugContext">
+ <iterate ifEmpty="false" operator="or">
<test
forcePluginActivation="true"
- property="org.eclipse.tcf.launch.canReset">
- </test></iterate>
- <count
- value="1">
- </count>
+ property="org.eclipse.tcf.launch.canReset"/>
+ </iterate>
+ <count value="1"/>
</with>
</activeWhen>
</handler>
@@ -791,6 +786,13 @@
label="%Reset.label"
style="pulldown"
tooltip="%Reset.tooltip">
+ <visibleWhen checkEnabled="false">
+ <with variable="activeContexts">
+ <iterate ifEmpty="false" operator="or">
+ <equals value="org.eclipse.tcf.debug.ui.debugging"/>
+ </iterate>
+ </with>
+ </visibleWhen>
</command>
</menuContribution>
<menuContribution

Back to the top