Search in sources :

Example 46 with LabeledText

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

the class RunDockerImageLaunchConfiguration method setEntrypoint.

public void setEntrypoint(String entrypoint) {
    selectTab(MAIN_TAB_LABEL);
    new LabeledText("Entrypoint:").setText(entrypoint);
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText)

Example 47 with LabeledText

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

the class RunDockerImageLaunchConfiguration method addPort.

public void addPort(String containerPort, String hostAddress, String hostPort) {
    selectTab(PORTS_TAB_LABEL);
    setPublishAllExposedPortsToRandomPorts(false);
    new PushButton("Add...").click();
    new WaitUntil(new ShellIsAvailable("Exposing a Container Port"));
    new LabeledText("Container port:").setText(containerPort);
    new LabeledText("Host address:").setText(hostAddress);
    new LabeledText("Host port:").setText(hostPort);
    new OkButton().click();
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 48 with LabeledText

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

the class RunDockerImageLaunchConfiguration method addLink.

// links tab
public void addLink(String containerName, String alias) {
    selectTab(LINKS_TAB_LABEL);
    new PushButton("Add...").click();
    new WaitWhile(new ShellIsAvailable("Container Linking"));
    new LabeledText("Container:").setText(containerName);
    new LabeledText("Value:").setText(alias);
    new OkButton().click();
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Example 49 with LabeledText

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

the class RunDockerImageLaunchConfiguration method setContainerName.

public void setContainerName(String containerName) {
    selectTab(MAIN_TAB_LABEL);
    new LabeledText("Container Name:").setText(containerName);
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText)

Example 50 with LabeledText

use of org.eclipse.reddeer.swt.impl.text.LabeledText 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);
    }
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) EclipseLayerException(org.eclipse.reddeer.eclipse.exception.EclipseLayerException) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

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