use of org.eclipse.reddeer.swt.impl.text.LabeledText 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();
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method addValueInTable.
private void addValueInTable(String tabName, String shellName, String newValueName, String newValue) {
selectTab(tabName);
new PushButton("Add...").click();
new WaitUntil(new ShellIsAvailable(shellName));
new LabeledText("Name:").setText(newValueName);
new LabeledText("Value:").setText(newValue);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project jbosstools-hibernate by jbosstools.
the class JpaXmlEditor method setHibernateUsername.
/**
* Sets hibernate username on hibernate tab
* @param username hibernate username
*/
public void setHibernateUsername(String username) {
activateHibernateTab();
new LabeledText(this, "Username:").setText(username);
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project jbosstools-openshift by jbosstools.
the class ServerAdapterWizardHandlingTest method testProjectSelectedInProjectExplorerIsPreselected.
@Test
public void testProjectSelectedInProjectExplorerIsPreselected() {
new ProjectExplorer().selectProjects(PROJECT_NAME);
openNewServerAdapterWizard();
next();
String eclipseProject = Display.syncExec(new ResultRunnable<String>() {
@Override
public String run() {
return new LabeledText("Eclipse Project: ").getSWTWidget().getText();
}
});
assertTrue("Selected project from workspace should be preselected", eclipseProject.equals(PROJECT_NAME));
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project jbosstools-openshift by jbosstools.
the class CreateResourcesTest method createResource.
private void createResource(String pathToResource) {
explorer.getOpenShift3Connection(connectionReq.getConnection()).getProject(testProject).select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.NEW_RESOURCE).select();
new DefaultShell(OpenShiftLabel.Shell.NEW_RESOURCE);
assertTrue("Selected project has not been selected for new resource creation.", new LabeledCombo(OpenShiftLabel.TextLabels.PROJECT).getSelection().equals(testProject));
new LabeledText(OpenShiftLabel.TextLabels.RESOURCE_LOCATION).setText(pathToResource);
new FinishButton().click();
new DefaultShell(OpenShiftLabel.Shell.CREATE_RESOURCE_SUMMARY);
assertTrue("Resource is not listed in created resources summary", new DefaultTree().getAllItems().size() == 1);
new OkButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_RESOURCE));
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
Aggregations