Search in sources :

Example 6 with CheckBox

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

the class DockerImagesTab method pushImage.

public void pushImage(String imageName, String registryAccount, boolean forceTagging, boolean keepTaggedImage) {
    selectImage(imageName);
    new ContextMenu().getItem("Push...").select();
    Combo combo = new DefaultCombo();
    combo.setSelection(registryAccount);
    new CheckBox("Force tagging image with selected registry").toggle(forceTagging);
    new CheckBox("Keep tagged image upon completion").toggle(keepTaggedImage);
    new FinishButton().click();
}
Also used : DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) FinishButton(org.eclipse.reddeer.swt.impl.button.FinishButton) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) ContextMenu(org.eclipse.reddeer.swt.impl.menu.ContextMenu) Combo(org.eclipse.reddeer.swt.api.Combo) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo)

Example 7 with CheckBox

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

the class RunDockerImageLaunchConfiguration method setMemoryLimit.

public void setMemoryLimit(String memoryLimit) {
    selectTab(RESOURCES_TAB_LABEL);
    new CheckBox("Enable resource limitations").toggle(true);
    new LabeledText("Memory limit:").setText(memoryLimit);
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Example 8 with CheckBox

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

the class RunDockerImageLaunchConfiguration method setAllocatepseudoTTYfromConsolet.

public void setAllocatepseudoTTYfromConsolet(boolean checked) {
    selectTab(MAIN_TAB_LABEL);
    new CheckBox("Allocate pseudo-TTY from Console (-t)").toggle(checked);
}
Also used : CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Example 9 with CheckBox

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

the class RunDockerImageLaunchConfiguration method getMemoryLimit.

public String getMemoryLimit() {
    selectTab(RESOURCES_TAB_LABEL);
    new CheckBox("Enable resource limitations").toggle(true);
    return new LabeledText("Memory limit:").getText();
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Example 10 with CheckBox

use of org.eclipse.reddeer.swt.impl.button.CheckBox in project jbosstools-openshift by jbosstools.

the class ImportApplicationWizardGitTest method testNotGitRepo.

@Test
public void testNotGitRepo() {
    assertTrue("Failed to create test project non git folder!", projectFolder.mkdir());
    service.select();
    new ContextMenuItem(OpenShiftLabel.ContextMenu.IMPORT_APPLICATION).select();
    new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
    ImportApplicationWizard importWizard = new ImportApplicationWizard();
    assertProjectExistsErrorInWizard(importWizard);
    CheckBox useExistingRepositoryCheckBox = new CheckBox(new DefaultGroup("Clone destination"), "Do not clone - use existing repository");
    assertFalse("Empty non git folder should not be able to choose!", useExistingRepositoryCheckBox.isEnabled());
    importWizard.cancel();
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) ContextMenuItem(org.eclipse.reddeer.swt.impl.menu.ContextMenuItem) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup) ImportApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) Test(org.junit.Test)

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