Search in sources :

Example 11 with DefaultToolItem

use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project jbosstools-openshift by jbosstools.

the class AbstractOpenShiftApplicationWizard method openWizardFromCentral.

/**
 * Opens a new OpenShift application wizard from JBoss Central.
 */
public void openWizardFromCentral() {
    new DefaultToolItem(new WorkbenchShell(), OpenShiftLabel.Others.RED_HAT_CENTRAL).click();
    new WaitUntil(new CentralIsLoaded());
    new InternalBrowser().execute(OpenShiftLabel.Others.OPENSHIFT_CENTRAL_SCRIPT);
    new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD), TimePeriod.LONG);
    signToOpenShiftAndClickNext();
    new DefaultShell(OpenShiftLabel.Shell.NEW_APP_WIZARD).setFocus();
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) InternalBrowser(org.eclipse.reddeer.swt.impl.browser.InternalBrowser) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) CentralIsLoaded(org.jboss.tools.openshift.reddeer.condition.CentralIsLoaded) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 12 with DefaultToolItem

use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project linuxtools by eclipse.

the class RunDockerImageLaunchConfiguration method deleteRunConfiguration.

public void deleteRunConfiguration(String configuratioName) {
    selectConfiguration(configuratioName);
    new DefaultToolItem(DELETE_LAUNCH_CONFIGURATION_LABEL).click();
    Shell deleteShell = new DefaultShell("Confirm Launch Configuration Deletion");
    WidgetIsFound deleteButton = new WidgetIsFound(org.eclipse.swt.widgets.Button.class, deleteShell.getSWTWidget(), new WithMnemonicTextMatcher("Delete"));
    Button button;
    if (deleteButton.test()) {
        // photon changed button text
        button = new PushButton(deleteShell, "Delete");
    } else {
        button = new YesButton(deleteShell);
    }
    button.click();
    new WaitWhile(new ShellIsAvailable(deleteShell));
    new WaitUntil(new ShellIsAvailable("Run Configurations"));
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) YesButton(org.eclipse.reddeer.swt.impl.button.YesButton) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) Shell(org.eclipse.reddeer.swt.api.Shell) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) WithMnemonicTextMatcher(org.eclipse.reddeer.core.matcher.WithMnemonicTextMatcher) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) WidgetIsFound(org.eclipse.reddeer.core.condition.WidgetIsFound) OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) YesButton(org.eclipse.reddeer.swt.impl.button.YesButton) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton) Button(org.eclipse.reddeer.swt.api.Button) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 13 with DefaultToolItem

use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project linuxtools by eclipse.

the class DockerConnection method removeConnection.

public void removeConnection() {
    select();
    new DefaultToolItem("Remove Connection").click();
    new WaitWhile(new JobIsRunning());
}
Also used : WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning)

Example 14 with DefaultToolItem

use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project linuxtools by eclipse.

the class NewDockerConnectionPage method open.

public void open() {
    new DockerExplorerView().open();
    new DefaultToolItem("Add Connection").click();
    new WaitUntil(new ShellIsAvailable(NEW_DOCKER_CONNECTION_SHELL), TimePeriod.LONG);
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DockerExplorerView(org.eclipse.linuxtools.docker.reddeer.ui.DockerExplorerView) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 15 with DefaultToolItem

use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project jbosstools-openshift by jbosstools.

the class DebuggingEAPAppTest method disableShowConsoleWhenOutputChanges.

private static void disableShowConsoleWhenOutputChanges() {
    ConsoleView consoleView = new ConsoleView();
    consoleView.open();
    new WaitUntil(new ShowConsoleOutputToolItemIsAvailable(), TimePeriod.VERY_LONG);
    DefaultToolItem showConsoleOnChange = new DefaultToolItem(new WorkbenchShell(), "Show Console Output When Standard Out Changes");
    showConsoleOnChange.click();
}
Also used : WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) ConsoleView(org.eclipse.reddeer.eclipse.ui.console.ConsoleView) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Aggregations

DefaultToolItem (org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem)20 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)9 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)9 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)8 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)8 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)6 WorkbenchShell (org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell)5 InternalBrowser (org.eclipse.reddeer.swt.impl.browser.InternalBrowser)4 Test (org.junit.Test)4 Shell (org.eclipse.reddeer.swt.api.Shell)3 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)3 YesButton (org.eclipse.reddeer.swt.impl.button.YesButton)3 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)3 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)2 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)2 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)2 CentralIsLoaded (org.jboss.tools.openshift.reddeer.condition.CentralIsLoaded)2 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)2 File (java.io.File)1 IOException (java.io.IOException)1