Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Grunberg2016-06-27 14:53:32 +0000
committerRoland Grunberg2016-06-29 16:39:42 +0000
commitf02bd5986c51b0a481fd6d775232a6ec9203c605 (patch)
treebfb65157917a86349502e0418431992f3725d2ef /containers/org.eclipse.linuxtools.docker.ui/plugin.xml
parent3c0cc46126e275c2bb4e5e48f43ebd3654d84ac2 (diff)
downloadorg.eclipse.linuxtools-f02bd5986c51b0a481fd6d775232a6ec9203c605.tar.gz
org.eclipse.linuxtools-f02bd5986c51b0a481fd6d775232a6ec9203c605.tar.xz
org.eclipse.linuxtools-f02bd5986c51b0a481fd6d775232a6ec9203c605.zip
Bug 496784: Enable mass stop/kill of containers regardless of state.
If a user wishes to stop/kill a large amount of containers (eg. by selecting all containers, the operation will become disabled since all selected containers must be in the running state. Relax this requirement and permit silent failure when trying to kill a stopped container. Change-Id: I59858fe05e7db038755cc736686d4c512914e0b3 Reviewed-on: https://git.eclipse.org/r/76017 Tested-by: Hudson CI Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
Diffstat (limited to 'containers/org.eclipse.linuxtools.docker.ui/plugin.xml')
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/plugin.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui/plugin.xml b/containers/org.eclipse.linuxtools.docker.ui/plugin.xml
index 86b2238318..cd9361b792 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/plugin.xml
+++ b/containers/org.eclipse.linuxtools.docker.ui/plugin.xml
@@ -377,7 +377,9 @@
class="org.eclipse.linuxtools.internal.docker.ui.commands.StopContainersCommandHandler">
<enabledWhen>
<with variable="selection">
- <iterate ifEmpty="false">
+ <iterate
+ ifEmpty="false"
+ operator="or">
<and>
<instanceof value="org.eclipse.linuxtools.docker.core.IDockerContainer"></instanceof>
<or>
@@ -398,7 +400,9 @@
class="org.eclipse.linuxtools.internal.docker.ui.commands.KillContainersCommandHandler">
<enabledWhen>
<with variable="selection">
- <iterate ifEmpty="false">
+ <iterate
+ ifEmpty="false"
+ operator="or">
<and>
<instanceof value="org.eclipse.linuxtools.docker.core.IDockerContainer"></instanceof>
<or>

Back to the top