public void openImageSearchDialog(
      String dockerConnectionName, String register, String imageName) {
    DockerExplorer de = this;
    de.open();
    de.getConnection(dockerConnectionName);
    new ContextMenu("Pull...").select();
    new WaitUntil(new ShellWithTextIsAvailable("Pull Image"), TimePeriod.NORMAL);

    Combo combo = new DefaultCombo();
    combo.setSelection(register);
    // enter image name in dialog
    new LabeledText(IMAGE_NAME).setFocus();
    new LabeledText(IMAGE_NAME).setText(imageName);

    new PushButton("Search...").click();
  }
  public void pullImage(String dockerServerURI, String register, String imageName) {
    DockerExplorer de = this;
    de.open();
    de.getConnection(dockerServerURI);
    new ContextMenu("Pull...").select();
    new WaitUntil(new ShellWithTextIsAvailable("Pull Image"), TimePeriod.NORMAL);

    // select register
    Combo combo = new DefaultCombo();
    combo.setSelection(register);
    // enter image name in dialog
    new LabeledText(IMAGE_NAME).setFocus();
    new LabeledText(IMAGE_NAME).setText(imageName);

    new PushButton("Finish").click();
    AbstractWait.sleep(TimePeriod.getCustom(5));
    new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
  }