Search in sources :

Example 1 with DefaultGroup

use of org.eclipse.reddeer.swt.impl.group.DefaultGroup in project jbosstools-hibernate by jbosstools.

the class EditConfigurationMainPage method setProject.

/**
 * Sets project for Hibernate Console Configuration
 * @param project given project name
 */
public void setProject(String project) {
    DefaultGroup g = new DefaultGroup("Project:");
    new DefaultText(g, 0).setText(project);
}
Also used : DefaultText(org.eclipse.reddeer.swt.impl.text.DefaultText) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup)

Example 2 with DefaultGroup

use of org.eclipse.reddeer.swt.impl.group.DefaultGroup in project jbosstools-hibernate by jbosstools.

the class EditConfigurationMainPage method setType.

public void setType(String type) {
    DefaultGroup g = new DefaultGroup("Type:");
    new RadioButton(g, type).click();
}
Also used : DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton)

Example 3 with DefaultGroup

use of org.eclipse.reddeer.swt.impl.group.DefaultGroup in project jbosstools-hibernate by jbosstools.

the class EditConfigurationMainPage method setDatabaseConnection.

/**
 * Sets database connection for Hibernate Console Configuration
 * @param connection given connection
 */
public void setDatabaseConnection(String connection) {
    DefaultGroup g = new DefaultGroup("Database connection:");
    new DefaultCombo(g, 0).setText(connection);
}
Also used : DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup)

Example 4 with DefaultGroup

use of org.eclipse.reddeer.swt.impl.group.DefaultGroup in project jbosstools-hibernate by jbosstools.

the class ProjectConfigurationFactory method addFurtherJPAConfiguration.

private static void addFurtherJPAConfiguration(String jpaVersion, boolean addedJavaFacet) {
    DefaultHyperlink hyperlink = new DefaultHyperlink();
    hyperlink.activate();
    Shell s = new DefaultShell("Modify Faceted Project");
    if (addedJavaFacet) {
        new NextButton().click();
    }
    DefaultGroup group = new DefaultGroup("Platform");
    new DefaultCombo(group).setSelection("Hibernate (JPA " + jpaVersion + ")");
    new LabeledCombo("Type:").setSelection("Disable Library Configuration");
    new OkButton().click();
    new WaitWhile(new ShellIsAvailable(s));
}
Also used : OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) Shell(org.eclipse.reddeer.swt.api.Shell) NextButton(org.eclipse.reddeer.swt.impl.button.NextButton) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) LabeledCombo(org.eclipse.reddeer.swt.impl.combo.LabeledCombo) DefaultHyperlink(org.eclipse.reddeer.uiforms.impl.hyperlink.DefaultHyperlink) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup)

Example 5 with DefaultGroup

use of org.eclipse.reddeer.swt.impl.group.DefaultGroup in project jbosstools-openshift by jbosstools.

the class ImportApplicationWizardGitTest method testNotGitRepo.

@Test
public void testNotGitRepo() {
    assertTrue("Failed to create test project non git folder!", projectFolder.mkdir());
    service.select();
    new ContextMenuItem(OpenShiftLabel.ContextMenu.IMPORT_APPLICATION).select();
    new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
    ImportApplicationWizard importWizard = new ImportApplicationWizard();
    assertProjectExistsErrorInWizard(importWizard);
    CheckBox useExistingRepositoryCheckBox = new CheckBox(new DefaultGroup("Clone destination"), "Do not clone - use existing repository");
    assertFalse("Empty non git folder should not be able to choose!", useExistingRepositoryCheckBox.isEnabled());
    importWizard.cancel();
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) ContextMenuItem(org.eclipse.reddeer.swt.impl.menu.ContextMenuItem) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup) ImportApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) Test(org.junit.Test)

Aggregations

DefaultGroup (org.eclipse.reddeer.swt.impl.group.DefaultGroup)9 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)3 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)3 DefaultCombo (org.eclipse.reddeer.swt.impl.combo.DefaultCombo)3 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)2 CheckBox (org.eclipse.reddeer.swt.impl.button.CheckBox)2 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)2 DefaultText (org.eclipse.reddeer.swt.impl.text.DefaultText)2 Shell (org.eclipse.reddeer.swt.api.Shell)1 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)1 TreeHasChildren (org.eclipse.reddeer.swt.condition.TreeHasChildren)1 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)1 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)1 RadioButton (org.eclipse.reddeer.swt.impl.button.RadioButton)1 LabeledCombo (org.eclipse.reddeer.swt.impl.combo.LabeledCombo)1 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)1 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)1 DefaultTree (org.eclipse.reddeer.swt.impl.tree.DefaultTree)1 DefaultHyperlink (org.eclipse.reddeer.uiforms.impl.hyperlink.DefaultHyperlink)1 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)1