use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method setConfigurationName.
public void setConfigurationName(String configurationName) {
selectTab(MAIN_TAB_LABEL);
new LabeledText("Name:").setText(configurationName);
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class DockerConnection method pullImage.
public void pullImage(String imageName, String imageTag, String dockerRegister) {
if (getImage(imageName, imageTag) == null) {
refreshImages();
treeViewerHandler.getTreeItem(item, "Images").select();
new ContextMenu().getItem("Pull...").select();
new WaitUntil(new ShellIsAvailable("Pull Image"), TimePeriod.DEFAULT);
Shell pullShell = new DefaultShell("Pull Image");
// select register
if (dockerRegister != null) {
Combo combo = new DefaultCombo();
combo.setSelection(dockerRegister);
}
new LabeledText(IMAGE_NAME_LABEL_DIALOG).setFocus();
new LabeledText(IMAGE_NAME_LABEL_DIALOG).setText(imageTag == null ? imageName : imageName + ":" + imageTag);
new WaitUntil(new ControlIsEnabled(new FinishButton()));
new FinishButton(pullShell).click();
new WaitWhile(new ShellIsAvailable(pullShell));
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class DockerConnection method openImageSearchDialog.
public void openImageSearchDialog(String imageName, String imageTag, String dockerRegister) {
refreshImages();
treeViewerHandler.getTreeItem(item, "Images").select();
new ContextMenu().getItem("Pull...").select();
new WaitUntil(new ShellIsAvailable("Pull Image"), TimePeriod.DEFAULT);
// select register
if (dockerRegister != null) {
Combo combo = new DefaultCombo();
combo.setSelection(dockerRegister);
}
new LabeledText(IMAGE_NAME_LABEL_DIALOG).setFocus();
new LabeledText(IMAGE_NAME_LABEL_DIALOG).setText(imageTag == null ? imageName : imageName + ":" + imageTag);
new PushButton("Search...").click();
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class DockerImage method addTagToImage.
public void addTagToImage(String newTag) {
select();
new ContextMenu().getItem("Add Tag").select();
new DefaultShell("Tag Image");
new LabeledText("New Tag:").setText(newTag);
new FinishButton().click();
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class ImageRunNetworkPage method setOtherNetworkMode.
public void setOtherNetworkMode(String other) {
new RadioButton("Other").click();
new LabeledText("").setText(other);
}
Aggregations