Search in sources :

Example 31 with CheckBox

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();
}
Also used : WorkbenchPreferenceDialog(org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Example 32 with CheckBox

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();
    }
}
Also used : CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox)

Aggregations

CheckBox (org.eclipse.reddeer.swt.impl.button.CheckBox)32 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)11 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)9 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)8 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)8 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)7 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)7 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)7 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)6 RadioButton (org.eclipse.reddeer.swt.impl.button.RadioButton)5 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)5 Test (org.junit.Test)5 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)4 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)4 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)3 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)3 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)2 CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)2 WithTextMatcher (org.eclipse.reddeer.core.matcher.WithTextMatcher)2 ProjectExplorer (org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer)2