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);
}
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();
}
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);
}
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));
}
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();
}
Aggregations