use of org.eclipse.reddeer.swt.impl.tree.DefaultTree in project jbosstools-openshift by jbosstools.
the class GetOpenShiftIOTokenTest method checkPluginInSecureStorage.
private void checkPluginInSecureStorage() {
WorkbenchPreferenceDialog preferences = new WorkbenchPreferenceDialog();
preferences.open();
StoragePreferencePage storagePreferencePage = new StoragePreferencePage(preferences);
preferences.select(storagePreferencePage);
storagePreferencePage.selectContentTab();
DefaultTreeItem account = new DefaultTreeItem(new DefaultTree(storagePreferencePage, 1), "[Default Secure Storage]", "org.jboss.tools.openshift.io.core", "accounts", "OpenShift.io", DatastoreOS3.OPENSHIFT_IO_USERNAME);
account.select();
assertNotNull("Account does not exists in secure storage", account);
preferences.ok();
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTree in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardTest method testImportOpenShift3AppViaServerAdapterSettings.
@SuppressWarnings("unchecked")
@Test(expected = OpenshiftTestInFailureException.class)
public void testImportOpenShift3AppViaServerAdapterSettings() {
ServerSettingsWizard serverWizard = OpenShiftUtils.openServerSettingsWizardFromOpenshiftView(service);
ImportApplicationWizard importWizard = new ServerSettingsWizardPage().importProject();
new DefaultTree(importWizard).getItem(new TreeItemRegexMatcher(OpenShiftResources.NODEJS_SERVICE + ".*")).select();
importWizard.next();
importWizard.finish();
new DefaultShell(OpenShiftLabel.Shell.SERVER_ADAPTER_SETTINGS);
assertProjectNameFilled();
serverWizard.cancel();
assertProjectExistsInProjectView(OpenShiftResources.NODEJS_GIT_NAME);
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTree in project jbosstools-hibernate by jbosstools.
the class TableFilterWizardPage method refreshDatabaseSchema.
/**
* Refreshes database schema
*/
public void refreshDatabaseSchema() {
new PushButton(referencedComposite, "Refresh").click();
DefaultGroup group = new DefaultGroup(referencedComposite, "Database schema:");
DefaultTree tree = new DefaultTree(group);
new WaitUntil(new TreeHasChildren(tree));
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTree in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method setRevengFile.
/**
* Select reveng file
* @param path path to existing reveng file
*/
public void setRevengFile(String... path) {
new PushButton(this, "Setup...").click();
org.eclipse.reddeer.swt.api.Shell setupShell = new DefaultShell("Setup reverse engineering");
new PushButton(setupShell, "Use existing...").click();
org.eclipse.reddeer.swt.api.Shell selectShell = new DefaultShell("Select reverse engineering settings file");
new DefaultTreeItem(new DefaultTree(selectShell), path).select();
new OkButton(selectShell).click();
new WaitWhile(new ShellIsAvailable(selectShell));
new WaitWhile(new ShellIsAvailable(setupShell));
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTree in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method createNewConfiguration.
/**
* Creates new hibernate launch configuration
*/
public void createNewConfiguration() {
new DefaultTreeItem(new DefaultTree(this), "Hibernate Code Generation").select();
new DefaultToolItem(this, "New launch configuration").click();
}
Aggregations