use of org.eclipse.reddeer.swt.api.Button in project jbosstools-openshift by jbosstools.
the class CDKLaunchConfigurationDialog method apply.
public void apply() {
logger.info("Pressing apply button...");
Button apply = new PushButton(this, new WithTextMatcher("Apply"));
if (apply.isEnabled()) {
apply.click();
}
}
use of org.eclipse.reddeer.swt.api.Button in project jbosstools-openshift by jbosstools.
the class CDKLaunchConfigurationDialog method revert.
public void revert() {
logger.info("Pressing revert button...");
Button revert = new PushButton(this, new WithTextMatcher("Revert"));
if (revert.isEnabled()) {
revert.click();
}
}
use of org.eclipse.reddeer.swt.api.Button in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method deleteRunConfiguration.
public void deleteRunConfiguration(String configuratioName) {
selectConfiguration(configuratioName);
new DefaultToolItem(DELETE_LAUNCH_CONFIGURATION_LABEL).click();
Shell deleteShell = new DefaultShell("Confirm Launch Configuration Deletion");
WidgetIsFound deleteButton = new WidgetIsFound(org.eclipse.swt.widgets.Button.class, deleteShell.getSWTWidget(), new WithMnemonicTextMatcher("Delete"));
Button button;
if (deleteButton.test()) {
// photon changed button text
button = new PushButton(deleteShell, "Delete");
} else {
button = new YesButton(deleteShell);
}
button.click();
new WaitWhile(new ShellIsAvailable(deleteShell));
new WaitUntil(new ShellIsAvailable("Run Configurations"));
}
use of org.eclipse.reddeer.swt.api.Button in project linuxtools by eclipse.
the class NewDockerConnectionPage method pingConnection.
public void pingConnection() {
Button testConnectionButton = new PushButton("Test Connection");
testConnectionButton.click();
new WaitUntil(new ShellIsAvailable("Success"));
new OkButton().click();
}
use of org.eclipse.reddeer.swt.api.Button in project jbosstools-openshift by jbosstools.
the class CredentialsWizardPage method cancelAddingUser.
public void cancelAddingUser() {
try {
Button cancel = new CancelButton();
cancel.click();
} catch (CoreLayerException exc) {
throw new CoreLayerException("Canceling setting the credentials was not successful");
}
}
Aggregations