Search in sources :

Example 16 with CheckBox

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

the class RunDockerImageLaunchConfiguration method addDataVolumeToHost.

public void addDataVolumeToHost(String containerPath, String path, boolean readOnly) {
    selectTab(VOLUMES_TAB_LABEL);
    new PushButton("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) 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 17 with CheckBox

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

the class RunDockerImageLaunchConfiguration method setKeepSTDINopentoConsoleevenifnotattachedi.

public void setKeepSTDINopentoConsoleevenifnotattachedi(boolean checked) {
    selectTab(MAIN_TAB_LABEL);
    new CheckBox("Keep STDIN open to Console even if not attached (-i)").toggle(checked);
}
Also used : CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Example 18 with CheckBox

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

the class RunDockerImageLaunchConfiguration method setPrivilegedMode.

public void setPrivilegedMode(boolean checked) {
    selectTab(MAIN_TAB_LABEL);
    new CheckBox("Give extended privileges to this container (--privileged)").toggle(checked);
}
Also used : CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Example 19 with CheckBox

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

the class RunDockerImageLaunchConfiguration method setRemoveContainerOnExit.

public void setRemoveContainerOnExit(boolean checked) {
    selectTab(MAIN_TAB_LABEL);
    new CheckBox("Automatically remove the container when it exits (--rm)").toggle(checked);
}
Also used : CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Example 20 with CheckBox

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

the class RunDockerImageLaunchConfiguration method setEnableResourceLimitations.

public void setEnableResourceLimitations(boolean check) {
    selectTab(RESOURCES_TAB_LABEL);
    new CheckBox("Enable resource limitations").toggle(check);
}
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