Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2015-06-05 14:25:00 -0400
committerJeff Johnston2015-06-05 14:45:11 -0400
commit7e9320750bc0bde90a51602ef2bdca3b923aeb69 (patch)
treeea4e6a23fa3d4d7f79c6a1ff4ecd7a9a884a787e
parent6152f1087bf2f7d4175950187ec9add90e2a7e10 (diff)
downloadorg.eclipse.linuxtools-7e9320750bc0bde90a51602ef2bdca3b923aeb69.tar.gz
org.eclipse.linuxtools-7e9320750bc0bde90a51602ef2bdca3b923aeb69.tar.xz
org.eclipse.linuxtools-7e9320750bc0bde90a51602ef2bdca3b923aeb69.zip
Bug 469310 - paused containers disppear from Docker Containers View
- fix HideStoppedContainersViewerFilter to also show paused containers Change-Id: Id5d3e68419730ac4fbd54b2be75a9ee81089230a Reviewed-on: https://git.eclipse.org/r/49549 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> Tested-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/HideStoppedContainersViewerFilter.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/HideStoppedContainersViewerFilter.java b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/HideStoppedContainersViewerFilter.java
index 5d23b811f5..1c08db1108 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/HideStoppedContainersViewerFilter.java
+++ b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/HideStoppedContainersViewerFilter.java
@@ -17,7 +17,9 @@ import org.eclipse.linuxtools.docker.core.EnumDockerStatus;
import org.eclipse.linuxtools.docker.core.IDockerContainer;
/**
- * Filters out any {@link IDockerContainer} that is not in a running state.
+ * Filters out any {@link IDockerContainer} that is not in a running or paused
+ * state.
+ *
* @author xcoulon
*
*/
@@ -31,7 +33,8 @@ public class HideStoppedContainersViewerFilter extends ViewerFilter {
if(element instanceof IDockerContainer) {
final IDockerContainer container = (IDockerContainer) element;
final EnumDockerStatus containerStatus = EnumDockerStatus.fromStatusMessage(container.status());
- if(containerStatus == EnumDockerStatus.RUNNING) {
+ if (containerStatus == EnumDockerStatus.RUNNING
+ || containerStatus == EnumDockerStatus.PAUSED) {
return true;
}
return false;

Back to the top