Search in sources :

Example 6 with LabeledText

use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.

the class NewDockerConnectionPage method setTcpConnection.

public void setTcpConnection(String uri, String authentificationCertificatePath, boolean pingConnection) {
    setTcpUri(uri);
    if (authentificationCertificatePath != null) {
        new CheckBox("Enable authentication").toggle(true);
        new LabeledText("Path:").setText(authentificationCertificatePath);
    }
    if (pingConnection) {
        pingConnection();
    }
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Example 7 with LabeledText

use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.

the class NewDockerConnectionPage method setTcpUri.

public void setTcpUri(String uri) {
    setConnectionName(uri);
    new CheckBox("Use custom connection settings:").toggle(true);
    new LabeledText("Location:").setText("");
    new RadioButton("TCP Connection").toggle(true);
    new LabeledText("URI:").setText(uri);
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton)

Example 8 with LabeledText

use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.

the class NewDockerConnectionPage method setUnixSocket.

public void setUnixSocket(String unixSocket) {
    new CheckBox("Use custom connection settings:").toggle(true);
    new LabeledText("Location:").setText(unixSocket);
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Example 9 with LabeledText

use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.

the class DockerImagesTab method buildImage.

public void buildImage(String name, String directory) {
    activate();
    new DefaultToolItem("Build Image").click();
    new WaitUntil(new ShellIsAvailable("Build a Docker Image"));
    new LabeledText("Image Name:").setText(name);
    new LabeledText("Directory:").setText(directory);
    new FinishButton().click();
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) FinishButton(org.eclipse.reddeer.swt.impl.button.FinishButton) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 10 with LabeledText

use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.

the class DockerImagesTab method addTagToImage.

public void addTagToImage(String imageName, String newTag) {
    selectImage(imageName);
    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

LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)93 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)34 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)32 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)30 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)30 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)30 Test (org.junit.Test)29 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)25 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)23 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)19 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)18 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)14 CheckBox (org.eclipse.reddeer.swt.impl.button.CheckBox)11 LabeledCombo (org.eclipse.reddeer.swt.impl.combo.LabeledCombo)11 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)10 RadioButton (org.eclipse.reddeer.swt.impl.button.RadioButton)9 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)9 WithTextMatcher (org.eclipse.reddeer.core.matcher.WithTextMatcher)8 DefaultTable (org.eclipse.reddeer.swt.impl.table.DefaultTable)8 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)8