use of org.eclipse.reddeer.swt.impl.button.CheckBox in project linuxtools by eclipse.
the class DockerImage method pushImage.
public void pushImage(String registryAccount, boolean forceTagging, boolean keepTaggedImage) {
select();
new ContextMenu().getItem("Push...").select();
new DefaultShell("Push Image");
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();
}
use of org.eclipse.reddeer.swt.impl.button.CheckBox in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method setResourceLimitation.
public void setResourceLimitation(String CPU, String memoryLimit) {
new CheckBox("Enable resource limitations").click();
switch(CPU) {
case "Low":
new RadioButton("Low").click();
break;
case "Medium":
new RadioButton("Medium").click();
break;
case "High":
new RadioButton("High").click();
break;
default:
new RadioButton("Medium").click();
}
new LabeledText("Memory limit:").setText(memoryLimit);
}
use of org.eclipse.reddeer.swt.impl.button.CheckBox in project linuxtools by eclipse.
the class LoggingPreferencePage method setRequestTimestamp.
public void setRequestTimestamp(boolean toggle) {
CheckBox cb = new CheckBox("Request time stamp for logs");
cb.toggle(toggle);
}
use of org.eclipse.reddeer.swt.impl.button.CheckBox in project jbosstools-openshift by jbosstools.
the class ImportApplicationTest method testImportOpenShiftApplicationViaOpenShiftExplorer.
@Test
public void testImportOpenShiftApplicationViaOpenShiftExplorer() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.open();
new WaitUntil(new OpenShiftResourceExists(Resource.BUILD_CONFIG, (Matcher<String>) null, ResourceState.UNSPECIFIED, projectReq.getProjectName(), connectionReq.getConnection()), TimePeriod.LONG);
explorer.getOpenShift3Connection(connectionReq.getConnection()).getProject(projectReq.getProjectName()).getOpenShiftResources(Resource.BUILD_CONFIG).get(0).select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.IMPORT_APPLICATION).select();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION), TimePeriod.LONG);
new DefaultShell(OpenShiftLabel.Shell.IMPORT_APPLICATION);
new CheckBox("Use default clone destination").toggle(false);
File gitRepo = new File(GIT_REPO_DIRECTORY);
new LabeledText("Git Clone Location:").setText(gitRepo.getAbsolutePath());
new FinishButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION), TimePeriod.VERY_LONG);
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
ProjectExplorer projectExplorer = new ProjectExplorer();
projectExplorer.open();
assertTrue("There should be imported kitchen sink project, but there is not", projectExplorer.containsProject(PROJECT_NAME));
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.swt.impl.button.CheckBox in project jbosstools-openshift by jbosstools.
the class TemplatesCreator method executeImport.
private void executeImport(boolean importProject) {
new DefaultShell(OpenShiftLabel.Shell.IMPORT_APPLICATION);
if (!importProject) {
new CancelButton().click();
} else {
new FinishButton().click();
try {
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.CHEATSHEET), TimePeriod.LONG);
new DefaultShell(OpenShiftLabel.Shell.CHEATSHEET);
new CheckBox(0).click();
new NoButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.CHEATSHEET));
} catch (WaitTimeoutExpiredException ex) {
// do nothing if cheat sheet is not provided
}
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD), TimePeriod.LONG);
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
}
Aggregations