use of org.eclipse.reddeer.swt.condition.ShellIsAvailable in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method editValueInTable.
private void editValueInTable(String tabName, String shellName, String oldValueName, String newValueName, String newValue) {
selectTab(tabName);
if (selectItemInTable(oldValueName)) {
new PushButton("Edit...");
new WaitWhile(new ShellIsAvailable(shellName));
new LabeledText("Name:").setText(newValueName);
new LabeledText("Value:").setText(newValue);
new OkButton().click();
} else {
throw new EclipseLayerException("There is no " + oldValueName + " in table on tab " + tabName);
}
}
use of org.eclipse.reddeer.swt.condition.ShellIsAvailable 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.condition.ShellIsAvailable 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.condition.ShellIsAvailable in project linuxtools by eclipse.
the class DockerImage method remove.
/**
* * Removes docker image.
*/
public void remove() {
select();
new ContextMenu().getItem("Remove").select();
Shell confirm = new DefaultShell("Confirm Remove Image");
new OkButton().click();
new WaitWhile(new ShellIsAvailable(confirm));
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.swt.condition.ShellIsAvailable in project linuxtools by eclipse.
the class HierarchyViewTest method openDockerImageHierarchyTab.
private DockerImageHierarchyTab openDockerImageHierarchyTab() {
getConnection().getImage(IMAGE_TEST_BUILD).openImageHierarchy();
new WaitWhile(new ShellIsAvailable("Docker Image Hierarchy"));
DockerImageHierarchyTab hierarchyTab = new DockerImageHierarchyTab();
hierarchyTab.open();
return hierarchyTab;
}
Aggregations