Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2012-05-09 08:47:47 +0000
committerUwe Stieber2012-05-09 08:47:47 +0000
commitda9e07abcd689081e53d768b2ae97c98fcc3e568 (patch)
tree77f5ca22afff8532b35bb4587cc6d662c86faba3 /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui
parent2e8a163e00d1585e940ad8877376b47b08f715f0 (diff)
downloadorg.eclipse.tcf-da9e07abcd689081e53d768b2ae97c98fcc3e568.tar.gz
org.eclipse.tcf-da9e07abcd689081e53d768b2ae97c98fcc3e568.tar.xz
org.eclipse.tcf-da9e07abcd689081e53d768b2ae97c98fcc3e568.zip
Target Explorer: FIX action visibility and enablement, launch reuse, npe
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/plugin.xml105
1 files changed, 64 insertions, 41 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/plugin.xml b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/plugin.xml
index 1671f2308..68b2e4799 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/plugin.xml
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/plugin.xml
@@ -40,10 +40,7 @@
<contextualLaunch>
<enablement>
<with variable="selection">
- <count value="1"/>
- <iterate
- ifEmpty="false"
- operator="and">
+ <iterate ifEmpty="false">
<test
forcePluginActivation="true"
property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
@@ -65,14 +62,12 @@
<contextualLaunch>
<enablement>
<with variable="selection">
- <count value="1"/>
- <iterate
- ifEmpty="false"
- operator="and">
+ <iterate ifEmpty="false">
<test
+ forcePluginActivation="true"
property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
- args="debug"/>
+ args="run"/>
</iterate>
</with>
</enablement>
@@ -139,13 +134,20 @@
label="%LaunchShortcutHandler.Remote.App.run.name"
style="push">
<visibleWhen checkEnabled="false">
- <with variable="selection">
- <iterate
- operator="and"
- ifEmpty="false">
- <instanceof value="org.eclipse.core.resources.IResource"/>
- </iterate>
- </with>
+ <with variable="selection">
+ <iterate
+ operator="and"
+ ifEmpty="false">
+ <and>
+ <adapt type="org.eclipse.debug.ui.actions.ILaunchable"/>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
+ value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
+ args="run"/>
+ </and>
+ </iterate>
+ </with>
</visibleWhen>
</command>
<command
@@ -156,13 +158,20 @@
label="%LaunchShortcutHandler.Remote.App.debug.name"
style="push">
<visibleWhen checkEnabled="false">
- <with variable="selection">
- <iterate
- operator="and"
- ifEmpty="false">
- <instanceof value="org.eclipse.core.resources.IResource"/>
- </iterate>
- </with>
+ <with variable="selection">
+ <iterate
+ operator="and"
+ ifEmpty="false">
+ <and>
+ <adapt type="org.eclipse.debug.ui.actions.ILaunchable"/>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
+ value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
+ args="run"/>
+ </and>
+ </iterate>
+ </with>
</visibleWhen>
</command>
</menuContribution>
@@ -178,11 +187,17 @@
style="push">
<visibleWhen checkEnabled="false">
<with variable="selection">
- <iterate
- operator="and"
- ifEmpty="false">
- <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
- </iterate>
+ <with variable="selection">
+ <iterate
+ operator="and"
+ ifEmpty="false">
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
+ value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
+ args="run"/>
+ </iterate>
+ </with>
</with>
</visibleWhen>
</command>
@@ -195,11 +210,17 @@
style="push">
<visibleWhen checkEnabled="false">
<with variable="selection">
- <iterate
- operator="and"
- ifEmpty="false">
- <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
- </iterate>
+ <with variable="selection">
+ <iterate
+ operator="and"
+ ifEmpty="false">
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
+ value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
+ args="debug"/>
+ </iterate>
+ </with>
</with>
</visibleWhen>
</command>
@@ -238,10 +259,11 @@
<iterate
operator="and"
ifEmpty="false">
- <or>
- <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
- <instanceof value="org.eclipse.core.resources.IResource"/>
- </or>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
+ value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
+ args="run"/>
</iterate>
</with>
</enabledWhen>
@@ -264,10 +286,11 @@
<iterate
operator="and"
ifEmpty="false">
- <or>
- <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
- <instanceof value="org.eclipse.core.resources.IResource"/>
- </or>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
+ value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
+ args="debug"/>
</iterate>
</with>
</enabledWhen>

Back to the top