Search in sources :

Example 11 with ContextMenu

use of org.eclipse.reddeer.swt.impl.menu.ContextMenu 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);
}
Also used : OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) Shell(org.eclipse.reddeer.swt.api.Shell) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) ContextMenu(org.eclipse.reddeer.swt.impl.menu.ContextMenu) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning)

Example 12 with ContextMenu

use of org.eclipse.reddeer.swt.impl.menu.ContextMenu 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();
}
Also used : FinishButton(org.eclipse.reddeer.swt.impl.button.FinishButton) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) ContextMenu(org.eclipse.reddeer.swt.impl.menu.ContextMenu)

Aggregations

ContextMenu (org.eclipse.reddeer.swt.impl.menu.ContextMenu)12 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)6 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)5 Combo (org.eclipse.reddeer.swt.api.Combo)5 DefaultCombo (org.eclipse.reddeer.swt.impl.combo.DefaultCombo)5 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)5 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)5 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)4 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)4 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)3 Shell (org.eclipse.reddeer.swt.api.Shell)2 CheckBox (org.eclipse.reddeer.swt.impl.button.CheckBox)2 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)2 DockerTerminal (org.eclipse.linuxtools.docker.reddeer.ui.DockerTerminal)1 ConsoleView (org.eclipse.reddeer.eclipse.ui.console.ConsoleView)1 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)1 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)1