Search in sources :

Example 16 with DefaultToolItem

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

the class StoreConnectionTest method invokeNewAppWizardFromCentral.

private void invokeNewAppWizardFromCentral() {
    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);
    new DefaultShell("New OpenShift Application");
}
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 17 with DefaultToolItem

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

the class OpenShiftExplorerView method openConnectionShellViaToolItem.

/**
 * Opens a new connection shell through tool item located in the top right
 * corner of OpenShift Explorer.
 */
public void openConnectionShellViaToolItem() {
    open();
    DefaultToolItem connectionButton = new DefaultToolItem(OpenShiftLabel.Others.CONNECT_TOOL_ITEM);
    connectionButton.click();
}
Also used : DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem)

Example 18 with DefaultToolItem

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

the class OpenShiftProject method togglePinPropertiesView.

/**
 * Sets properties view to pinned or not for selected domain. Properties
 * view has to be opened to perform this method.
 *
 * @param toggle toggle pinned properties view or not
 */
public void togglePinPropertiesView(boolean toggle) {
    ToolItem pinItem = new DefaultToolItem("Pins this property view to the current selection");
    pinItem.toggle(toggle);
}
Also used : DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) ToolItem(org.eclipse.reddeer.swt.api.ToolItem) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem)

Example 19 with DefaultToolItem

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

the class CriteriaEditor method runCriteria.

/**
 * Executes criteria
 */
public void runCriteria() {
    new DefaultToolItem("Run criteria").click();
    try {
        Shell s = new DefaultShell("Open Session factory");
        new YesButton(s).click();
        new WaitWhile(new ShellIsAvailable(s));
    } catch (RedDeerException e) {
        log.warn("Open Session factory question dialog was expected");
    } finally {
        new WaitWhile(new JobIsRunning());
    }
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) RedDeerException(org.eclipse.reddeer.common.exception.RedDeerException) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) Shell(org.eclipse.reddeer.swt.api.Shell) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) YesButton(org.eclipse.reddeer.swt.impl.button.YesButton)

Example 20 with DefaultToolItem

use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem 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

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