Search in sources :

Example 1 with TableHasRows

use of org.eclipse.reddeer.swt.condition.TableHasRows in project jbosstools-openshift by jbosstools.

the class DeleteResourcesWizard method openWizardFromExplorer.

/**
 * Opens a new OpenShift 3 Delete Resources... wizard from OpenShift Explorer view with the given project pre-selected.
 * If the project is null, a generated project is used.
 *
 * @param project project name for deleting resources
 */
public void openWizardFromExplorer(String project) {
    OpenShiftExplorerView explorer = new OpenShiftExplorerView();
    explorer.reopen();
    selectExplorerProject(project, explorer);
    new ContextMenuItem(OpenShiftLabel.ContextMenu.DELETE_RESOURCES).select();
    new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.DELETE_OS_RESOURCES), TimePeriod.LONG);
    new DefaultShell(OpenShiftLabel.Shell.DELETE_OS_RESOURCES);
    new WaitUntil(new TableHasRows(new DefaultTable()), TimePeriod.LONG);
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) TableHasRows(org.eclipse.reddeer.swt.condition.TableHasRows) ContextMenuItem(org.eclipse.reddeer.swt.impl.menu.ContextMenuItem) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) DefaultTable(org.eclipse.reddeer.swt.impl.table.DefaultTable) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) OpenShiftExplorerView(org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)

Aggregations

WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)1 TableHasRows (org.eclipse.reddeer.swt.condition.TableHasRows)1 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)1 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)1 DefaultTable (org.eclipse.reddeer.swt.impl.table.DefaultTable)1 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)1