Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-09-27 08:12:57 -0400
committerUwe Stieber2012-09-27 08:12:57 -0400
commit3ed5b721373e2d5044244d512249ab71fe433db8 (patch)
tree97beb71c880b069ab6248ed142e00700cfbe0570 /target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/plugin.xml
parent6186134c136c6d8fcad43ee38352548fd7eb5034 (diff)
downloadorg.eclipse.tcf-3ed5b721373e2d5044244d512249ab71fe433db8.tar.gz
org.eclipse.tcf-3ed5b721373e2d5044244d512249ab71fe433db8.tar.xz
org.eclipse.tcf-3ed5b721373e2d5044244d512249ab71fe433db8.zip
Target Explorer: Bind Attach/Detach handler and menu contributions to the availability of an IDebugService service instance
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/plugin.xml')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/plugin.xml82
1 files changed, 68 insertions, 14 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/plugin.xml b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/plugin.xml
index 23ae75266..a4112ce18 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/plugin.xml
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/plugin.xml
@@ -144,7 +144,20 @@
style="push"
tooltip="%command.attach.tooltip">
<visibleWhen checkEnabled="false">
- <reference definitionId="te.expressions.processes.isProcessTreeNode"/>
+ <with variable="selection">
+ <count value="+"/>
+ <iterate operator="and" ifEmpty="false">
+ <and>
+ <instanceof value="org.eclipse.tcf.te.tcf.processes.core.model.interfaces.IProcessContextNode"/>
+ <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel">
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IDebugService"/>
+ </adapt>
+ </and>
+ </iterate>
+ </with>
</visibleWhen>
</command>
@@ -157,7 +170,20 @@
style="push"
tooltip="%command.detach.tooltip">
<visibleWhen checkEnabled="false">
- <reference definitionId="te.expressions.processes.isProcessTreeNode"/>
+ <with variable="selection">
+ <count value="+"/>
+ <iterate operator="and" ifEmpty="false">
+ <and>
+ <instanceof value="org.eclipse.tcf.te.tcf.processes.core.model.interfaces.IProcessContextNode"/>
+ <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel">
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IDebugService"/>
+ </adapt>
+ </and>
+ </iterate>
+ </with>
</visibleWhen>
</command>
@@ -377,12 +403,26 @@
class="org.eclipse.tcf.te.tcf.processes.ui.handler.AttachHandler"
commandId="org.eclipse.tcf.te.launch.command.attach">
<activeWhen>
- <with variable="activePartId">
- <or>
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
- </or>
- </with>
+ <and>
+ <with variable="activePartId">
+ <or>
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
+ </or>
+ </with>
+ <with variable="selection">
+ <count value="+"/>
+ <iterate operator="and" ifEmpty="false">
+ <instanceof value="org.eclipse.tcf.te.tcf.processes.core.model.interfaces.IProcessContextNode"/>
+ <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel">
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IDebugService"/>
+ </adapt>
+ </iterate>
+ </with>
+ </and>
</activeWhen>
<enabledWhen>
<with variable="selection">
@@ -400,12 +440,26 @@
class="org.eclipse.tcf.te.tcf.processes.ui.handler.DetachHandler"
commandId="org.eclipse.tcf.te.launch.command.detach">
<activeWhen>
- <with variable="activePartId">
- <or>
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
- </or>
- </with>
+ <and>
+ <with variable="activePartId">
+ <or>
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
+ </or>
+ </with>
+ <with variable="selection">
+ <count value="+"/>
+ <iterate operator="and" ifEmpty="false">
+ <instanceof value="org.eclipse.tcf.te.tcf.processes.core.model.interfaces.IProcessContextNode"/>
+ <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel">
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IDebugService"/>
+ </adapt>
+ </iterate>
+ </with>
+ </and>
</activeWhen>
<enabledWhen>
<with variable="selection">

Back to the top