Search in sources :

Example 16 with DefaultTree

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();
}
Also used : DefaultTree(org.eclipse.reddeer.swt.impl.tree.DefaultTree) WorkbenchPreferenceDialog(org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog) DefaultTreeItem(org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem) StoragePreferencePage(org.eclipse.reddeer.eclipse.equinox.security.ui.storage.StoragePreferencePage)

Example 17 with DefaultTree

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);
}
Also used : DefaultTree(org.eclipse.reddeer.swt.impl.tree.DefaultTree) TreeItemRegexMatcher(org.eclipse.reddeer.core.matcher.TreeItemRegexMatcher) ServerSettingsWizard(org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizard) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) ImportApplicationWizard(org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard) ServerSettingsWizardPage(org.jboss.tools.openshift.reddeer.wizard.server.ServerSettingsWizardPage) Test(org.junit.Test)

Example 18 with DefaultTree

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));
}
Also used : DefaultTree(org.eclipse.reddeer.swt.impl.tree.DefaultTree) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup) TreeHasChildren(org.eclipse.reddeer.swt.condition.TreeHasChildren) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 19 with DefaultTree

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));
}
Also used : OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DefaultTree(org.eclipse.reddeer.swt.impl.tree.DefaultTree) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) DefaultTreeItem(org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Example 20 with DefaultTree

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();
}
Also used : DefaultTree(org.eclipse.reddeer.swt.impl.tree.DefaultTree) DefaultTreeItem(org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem)

Aggregations

DefaultTree (org.eclipse.reddeer.swt.impl.tree.DefaultTree)22 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)9 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)9 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)8 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)7 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)7 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)7 TreeItem (org.eclipse.reddeer.swt.api.TreeItem)6 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)5 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)5 Test (org.junit.Test)5 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)3 CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)3 WithTextMatcher (org.eclipse.reddeer.core.matcher.WithTextMatcher)3 TreeHasChildren (org.eclipse.reddeer.swt.condition.TreeHasChildren)3 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)3 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)3 DefaultTabItem (org.eclipse.reddeer.swt.impl.tab.DefaultTabItem)3 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)2 Shell (org.eclipse.reddeer.swt.api.Shell)2