Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImageSearchPage.java')
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImageSearchPage.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImageSearchPage.java b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImageSearchPage.java
index 752b3cfa35..fe7fe2e942 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImageSearchPage.java
+++ b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImageSearchPage.java
@@ -81,6 +81,9 @@ public class ImageSearchPage extends WizardPage {
/**
* Default constructor.
+ *
+ * @param model
+ * the model for this page
*/
public ImageSearchPage(final ImageSearchModel model) {
super("ImageSearchPage", //$NON-NLS-1$
@@ -89,6 +92,9 @@ public class ImageSearchPage extends WizardPage {
this.model = model;
}
+ /**
+ * @return the selected Docker Image in the result table
+ */
public IDockerImageSearchResult getSelectedImage() {
return model.getSelectedImage();
}
@@ -209,6 +215,10 @@ public class ImageSearchPage extends WizardPage {
// attach the Databinding context status to this wizard page.
WizardPageSupport.create(this, this.ctx);
setControl(container);
+ // trigger a search if an image name was provided
+ if (model.getTerm() != null && !model.getTerm().isEmpty()) {
+ searchImages();
+ }
}
private TableViewerColumn addTableViewerColum(final TableViewer tableViewer,

Back to the top