use of org.eclipse.reddeer.swt.impl.button.CheckBox in project jbosstools-openshift by jbosstools.
the class TestUtils method setVisualEditorToUseHTML5.
public static void setVisualEditorToUseHTML5() {
WorkbenchPreferenceDialog dialog = new WorkbenchPreferenceDialog();
dialog.open();
dialog.select("JBoss Tools", "Web", "Editors", "Visual Page Editor");
RadioButton button = new RadioButton("HTML5 (use WebKit)");
if (button.isEnabled() && !button.isSelected()) {
button.click();
}
CheckBox checkBox = new CheckBox("Do not show Browser Engine dialog");
if (checkBox.isEnabled() && !checkBox.isChecked()) {
checkBox.click();
}
new PushButton("Apply").click();
dialog.ok();
}
use of org.eclipse.reddeer.swt.impl.button.CheckBox in project jbosstools-hibernate by jbosstools.
the class NewConfigurationWizardPage method setCreateConsoleConfiguration.
/**
* Checks if console configuration should be created
* @param create if true configuration will be created
*/
public void setCreateConsoleConfiguration(boolean create) {
CheckBox cb = new CheckBox(referencedComposite);
boolean status = cb.isChecked();
if (status != create) {
cb.click();
}
}
Aggregations