Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-08-19 02:50:11 -0400
committerTobias Schwarz2014-08-19 02:50:11 -0400
commitb1b8d4fa8a78d109dcd8b6b54d3d218f030b7045 (patch)
treeb1b83551c9a3af1d34d29565cf6ddba7463c71a9
parent8ba1287cb6f4ec4d1bc86248513312ccdd4f46cc (diff)
downloadorg.eclipse.tcf-b1b8d4fa8a78d109dcd8b6b54d3d218f030b7045.tar.gz
org.eclipse.tcf-b1b8d4fa8a78d109dcd8b6b54d3d218f030b7045.tar.xz
org.eclipse.tcf-b1b8d4fa8a78d109dcd8b6b54d3d218f030b7045.zip
Target Explorer: fix attach action visibility
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/plugin.xml32
1 files changed, 30 insertions, 2 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 1479ac155..2e0d1352d 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
@@ -197,6 +197,8 @@
<and>
<instanceof value="org.eclipse.tcf.te.tcf.processes.core.model.interfaces.IProcessContextNode"/>
<adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
+ <test property="org.eclipse.tcf.te.tcf.locator.hasOfflineService" value="RunControl"/>
+ <test property="org.eclipse.tcf.te.tcf.locator.hasOfflineService" value="Processes"/>
<test
forcePluginActivation="true"
property="org.eclipse.tcf.te.runtime.services.hasService"
@@ -447,12 +449,38 @@
<!-- Main toolbar contributions -->
<menuContribution locationURI="menu:org.eclipse.tcf.te.tcf.ui.DefaultContextActionsToolbarContribution?after=group.launch.rundebug">
- <command commandId="org.eclipse.tcf.te.tcf.processes.ui.command.attach"/>
+ <command commandId="org.eclipse.tcf.te.tcf.processes.ui.command.attach">
+ <visibleWhen checkEnabled="false">
+ <with variable="defaultContextSelection">
+ <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
+ <test property="org.eclipse.tcf.te.tcf.locator.hasOfflineService" value="RunControl"/>
+ <test property="org.eclipse.tcf.te.tcf.locator.hasOfflineService" value="Processes"/>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IDebugService"/>
+ </adapt>
+ </with>
+ </visibleWhen>
+ </command>
</menuContribution>
<!-- System menu contributions -->
<menuContribution locationURI="menu:org.eclipse.tcf.te.tcf.ui.main.menu.system?after=group.launch.rundebug">
- <command commandId="org.eclipse.tcf.te.tcf.processes.ui.command.attach"/>
+ <command commandId="org.eclipse.tcf.te.tcf.processes.ui.command.attach">
+ <visibleWhen checkEnabled="false">
+ <with variable="defaultContextSelection">
+ <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
+ <test property="org.eclipse.tcf.te.tcf.locator.hasOfflineService" value="RunControl"/>
+ <test property="org.eclipse.tcf.te.tcf.locator.hasOfflineService" value="Processes"/>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IDebugService"/>
+ </adapt>
+ </with>
+ </visibleWhen>
+ </command>
</menuContribution>
</extension>

Back to the top