use of org.eclipse.reddeer.swt.api.Table in project linuxtools by eclipse.
the class RegistryAccountsPreferencePage method removeRegistry.
public void removeRegistry(String serverAddress) {
Table table = new DefaultTable();
if (table.containsItem(serverAddress)) {
table.select(serverAddress);
new PushButton("Remove").click();
}
}
use of org.eclipse.reddeer.swt.api.Table in project jbosstools-openshift by jbosstools.
the class PortForwardingTest method testFreePortsForPortForwarding.
@Test
public void testFreePortsForPortForwarding() {
openPortForwardingDialog();
CheckBox checkBox = new CheckBox(OpenShiftLabel.TextLabels.FIND_FREE_PORTS);
Table table = new DefaultTable();
assertTrue("Default port should be used for ping on first opening of Port forwarding dialog.", table.getItem("ping").getText(1).equals("8888"));
assertTrue("Default port should be used for http on first opening of Port forwarding dialog.", table.getItem("http").getText(1).equals("8080"));
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
checkBox.click();
assertFalse("Free port port should be used for ping at this point.", table.getItem("ping").getText(1).equals("8888"));
assertFalse("Free port should be used for http at this point.", table.getItem("http").getText(1).equals("8080"));
checkBox.click();
assertTrue("Default port should be used for ping at this point.", table.getItem("ping").getText(1).equals("8888"));
assertTrue("Default port should be used for http at this point.", table.getItem("http").getText(1).equals("8080"));
}
use of org.eclipse.reddeer.swt.api.Table in project linuxtools by eclipse.
the class NewDockerConnectionPage method search.
public void search(String connectionName) {
new PushButton("Search...").click();
new WaitUntil(new ShellIsAvailable("Docker Connection Selection"));
Table table = new DefaultTable();
table.getItem(connectionName).select();
new OkButton().click();
}
use of org.eclipse.reddeer.swt.api.Table in project linuxtools by eclipse.
the class RegistryAccountsPreferencePage method editRegistry.
public void editRegistry(String serverAddress, String email, String userName, String password) {
Table table = new DefaultTable();
if (table.containsItem(serverAddress)) {
table.select(serverAddress);
new PushButton("Edit").click();
new LabeledText(SERVER_ADDRESS).setText(serverAddress);
new LabeledText(USERNAME).setText(userName);
new LabeledText(EMAIL).setText(email);
new LabeledText(PASSWORD).setText(password);
new PushButton("OK").click();
}
}
use of org.eclipse.reddeer.swt.api.Table in project linuxtools by eclipse.
the class RegistryAccountsPreferencePage method removeAllRegistries.
public void removeAllRegistries() {
Table table = new DefaultTable();
for (int i = 0; i < table.rowCount(); i++) {
table.select(0);
new PushButton("Remove").click();
}
}
Aggregations