Search in sources :

Example 1 with NewWizard

use of org.eclipse.reddeer.eclipse.ui.dialogs.NewWizard in project jbosstools-openshift by jbosstools.

the class AbstractOpenShiftApplicationWizard method openWizardFromShellMenu.

/**
 * Opens new application wizard via shell menu File - New. There has to be
 * an existing connection in OpenShift explorer, otherwise method fails.
 */
public void openWizardFromShellMenu() {
    new WorkbenchShell().setFocus();
    new NewWizard().open();
    new DefaultShell("New").setFocus();
    new DefaultTreeItem("OpenShift", "OpenShift Application").select();
    new NextButton().click();
    signToOpenShiftAndClickNext();
    new DefaultShell(OpenShiftLabel.Shell.NEW_APP_WIZARD).setFocus();
}
Also used : WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) NextButton(org.eclipse.reddeer.swt.impl.button.NextButton) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) NewWizard(org.eclipse.reddeer.eclipse.ui.dialogs.NewWizard) DefaultTreeItem(org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)

Aggregations

NewWizard (org.eclipse.reddeer.eclipse.ui.dialogs.NewWizard)1 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)1 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)1 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)1 WorkbenchShell (org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell)1