use of org.eclipse.linuxtools.docker.ui.wizards.ImageSearch in project linuxtools by eclipse.
the class RunImageMainTab method onSearchImage.
private SelectionListener onSearchImage() {
return SelectionListener.widgetSelectedAdapter(e -> {
final ImageSearch imageSearchWizard = new ImageSearch(RunImageMainTab.this.model.getSelectedConnection(), RunImageMainTab.this.model.getSelectedImageName(), new RegistryInfo(AbstractRegistry.DOCKERHUB_REGISTRY, true));
final boolean completed = CommandUtils.openWizard(imageSearchWizard, getShell());
if (completed) {
model.setSelectedImageName(imageSearchWizard.getSelectedImage());
}
});
}
use of org.eclipse.linuxtools.docker.ui.wizards.ImageSearch in project linuxtools by eclipse.
the class ImagePullPage method onSearchImage.
/**
* Opens the {@link ImageSearch} dialog with current image name pre-filled.
*
* @return
*/
private SelectionListener onSearchImage() {
return SelectionListener.widgetSelectedAdapter(e -> {
final ImageSearch imageSearchWizard = new ImageSearch(ImagePullPage.this.connection, ImagePullPage.this.getModel().getSelectedImageName(), ImagePullPage.this.getModel().getSelectedRegistry());
final boolean completed = CommandUtils.openWizard(imageSearchWizard, getShell());
if (completed) {
ImagePullPage.this.getModel().setSelectedImageName(imageSearchWizard.getSelectedImage());
}
});
}
use of org.eclipse.linuxtools.docker.ui.wizards.ImageSearch in project linuxtools by eclipse.
the class ImageRunSelectionPage method onSearchImage.
private SelectionListener onSearchImage() {
return SelectionListener.widgetSelectedAdapter(e -> {
final ImageSearch imageSearchWizard = new ImageSearch(ImageRunSelectionPage.this.model.getSelectedConnection(), ImageRunSelectionPage.this.model.getSelectedImageName(), new RegistryInfo(AbstractRegistry.DOCKERHUB_REGISTRY, true));
final boolean completed = CommandUtils.openWizard(imageSearchWizard, getShell());
if (completed) {
model.setSelectedImageName(imageSearchWizard.getSelectedImage());
}
});
}
Aggregations