Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Coulon2016-08-25 07:50:17 +0000
committerJeff Johnston2016-08-26 16:04:59 +0000
commitc98537761a49266ac998b46049fdac7a1e5b7b14 (patch)
tree1d871dceeabb397e9950255e54d15dd3646f27d0
parent54e5c8ca044f99fb6cacb4f55a83e5259cdb9008 (diff)
downloadorg.eclipse.linuxtools-c98537761a49266ac998b46049fdac7a1e5b7b14.tar.gz
org.eclipse.linuxtools-c98537761a49266ac998b46049fdac7a1e5b7b14.tar.xz
org.eclipse.linuxtools-c98537761a49266ac998b46049fdac7a1e5b7b14.zip
Bug 500159 - Change or remove the message in the Hierarchy view when no element was selected
Replaced the confusing message with a new one inspired from the Java Type Hierarchy view. Change-Id: I5576c098e3e4d7db94fac7a034d2decee42a5c03 Signed-off-by: Xavier Coulon <xcoulon@redhat.com> Reviewed-on: https://git.eclipse.org/r/79699 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> (cherry picked from commit 8317f7bf77a6cda4a2ae1773d1adea05cc6a1ff7) Reviewed-on: https://git.eclipse.org/r/79868
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DVMessages.properties2
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImageHierarchyView.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DVMessages.properties b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DVMessages.properties
index 0265356540..17359a394a 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DVMessages.properties
+++ b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DVMessages.properties
@@ -190,7 +190,7 @@ DockerContainerVolumesCategory.label=Volumes
DockerContainerLinksCategory.label=Links
DockerImagesCategory.label=Images
-DockerHierarchyViewNoImageSelected.msg=No Docker image was selected.
+DockerHierarchyViewNoImageSelected.msg=To display the Docker image hierarchy, select an Image in the Docker Explorer view or in the Docker Images view, and select the 'Open Image Hierarchy' menu option.
CopyAction.text=Copy
CopyAction.tooltip=Copy property value
diff --git a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImageHierarchyView.java b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImageHierarchyView.java
index dbd421ab8e..3457b6fa1c 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImageHierarchyView.java
+++ b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImageHierarchyView.java
@@ -90,7 +90,7 @@ public class DockerImageHierarchyView extends CommonNavigator
final Composite container = form.getBody();
GridLayoutFactory.fillDefaults().numColumns(1).margins(5, 5)
.applyTo(container);
- final Label label = new Label(container, SWT.NONE);
+ final Label label = new Label(container, SWT.WRAP);
label.setText(
DVMessages.getString("DockerHierarchyViewNoImageSelected.msg")); //$NON-NLS-1$
GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.FILL)

Back to the top