Search in sources :

Example 1 with CheckBox

use of org.eclipse.reddeer.swt.impl.button.CheckBox in project linuxtools by eclipse.

the class ImageRunResourceVolumesVariablesPage method addDataVolumeToHost.

public void addDataVolumeToHost(String containerPath, String path, boolean readOnly) {
    new PushButton(0, new WithTextMatcher("Add...")).click();
    new LabeledText("Container path:").setText(containerPath);
    new RadioButton("Mount a host directory or host file").click();
    new LabeledText("Path:").setText(path);
    new CheckBox("Read-only access").toggle(readOnly);
    ;
    new OkButton().click();
}
Also used : OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) WithTextMatcher(org.eclipse.reddeer.core.matcher.WithTextMatcher) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Example 2 with CheckBox

use of org.eclipse.reddeer.swt.impl.button.CheckBox 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 3 with CheckBox

use of org.eclipse.reddeer.swt.impl.button.CheckBox 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 4 with CheckBox

use of org.eclipse.reddeer.swt.impl.button.CheckBox 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 5 with CheckBox

use of org.eclipse.reddeer.swt.impl.button.CheckBox in project linuxtools by eclipse.

the class LoggingPreferencePage method setAutomaticallyLog.

public void setAutomaticallyLog(boolean toggle) {
    CheckBox cb = new CheckBox("Automatically log when Container starts");
    cb.toggle(toggle);
}
Also used : CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Aggregations

CheckBox (org.eclipse.reddeer.swt.impl.button.CheckBox)32 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)11 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)9 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)8 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)8 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)7 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)7 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)7 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)6 RadioButton (org.eclipse.reddeer.swt.impl.button.RadioButton)5 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)5 Test (org.junit.Test)5 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)4 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)4 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)3 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)3 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)2 CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)2 WithTextMatcher (org.eclipse.reddeer.core.matcher.WithTextMatcher)2 ProjectExplorer (org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer)2