Search in sources :

Example 26 with LabeledCombo

use of org.eclipse.reddeer.swt.impl.combo.LabeledCombo in project jbosstools-hibernate by jbosstools.

the class HibernateToolsFactory method setHibernateVersion.

/**
 * Sets hibernate version to given console
 * @param consoleName console name
 * @param hibernateVersion hibernate version
 */
public static void setHibernateVersion(String consoleName, String hbVersion) {
    KnownConfigurationsView v = new KnownConfigurationsView();
    v.open();
    v.openConsoleConfiguration(consoleName);
    new LabeledCombo("Hibernate Version:").setSelection(hbVersion);
    new OkButton().click();
}
Also used : OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) LabeledCombo(org.eclipse.reddeer.swt.impl.combo.LabeledCombo) KnownConfigurationsView(org.jboss.tools.hibernate.reddeer.console.views.KnownConfigurationsView)

Aggregations

LabeledCombo (org.eclipse.reddeer.swt.impl.combo.LabeledCombo)26 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)11 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)10 Test (org.junit.Test)10 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)8 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)7 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)6 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)6 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)6 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)5 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)5 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)4 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)4 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)3 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)3 DefaultCombo (org.eclipse.reddeer.swt.impl.combo.DefaultCombo)3 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)3 WorkbenchShell (org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell)3 InternalBrowser (org.eclipse.reddeer.swt.impl.browser.InternalBrowser)2 BackButton (org.eclipse.reddeer.swt.impl.button.BackButton)2