Search in sources :

Example 1 with DefaultCTabItem

use of org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem in project linuxtools by eclipse.

the class RunDockerImageLaunchConfiguration method selectTab.

/**
 * Selects tab with a given label.
 *
 * @param label
 *            Label
 * @return
 */
public DefaultCTabItem selectTab(String label) {
    DefaultCTabItem tab = new DefaultCTabItem(label);
    tab.activate();
    return tab;
}
Also used : DefaultCTabItem(org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem)

Example 2 with DefaultCTabItem

use of org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem in project linuxtools by eclipse.

the class RunDockerImageLaunchConfiguration method searchImage.

public void searchImage(String imageName, String tag) {
    selectTab(MAIN_TAB_LABEL);
    new PushButton("Search...");
    ImageSearchPage pageOne = new ImageSearchPage(new DefaultCTabItem(MAIN_TAB_LABEL));
    pageOne.searchImage(imageName);
    pageOne.next();
    new WaitWhile(new ShellIsActive("Progress Information"), TimePeriod.DEFAULT);
    ImageTagSelectionPage pageTwo = new ImageTagSelectionPage(pageOne);
    assertFalse("Search tags are empty!", pageTwo.getTags().isEmpty());
    new WaitWhile(new JobIsRunning(), TimePeriod.DEFAULT);
    assertTrue("Search results do not contains tag:" + tag + "!", pageTwo.tagsContains(tag));
    pageTwo.selectTag(tag);
    pageTwo.finish();
    new DefaultShell("Pull Image");
    new PushButton("Finish").click();
    new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
Also used : ImageSearchPage(org.eclipse.linuxtools.docker.reddeer.core.ui.wizards.ImageSearchPage) ShellIsActive(org.eclipse.reddeer.swt.condition.ShellIsActive) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) ImageTagSelectionPage(org.eclipse.linuxtools.docker.reddeer.core.ui.wizards.ImageTagSelectionPage) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton) DefaultCTabItem(org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem)

Example 3 with DefaultCTabItem

use of org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem in project linuxtools by eclipse.

the class AbstractView method getViewCTabItem.

/**
 * Gets the view c tab item.
 *
 * @return the view c tab item
 */
protected CTabItem getViewCTabItem() {
    if (cTabItem != null && cTabItem.isDisposed()) {
        cTabItem = null;
    }
    if (cTabItem == null) {
        if (!isOpen()) {
            return cTabItem;
        }
        log.debug("Looking up CTabItem with text " + getTitle());
        cTabItem = new DefaultCTabItem(new WorkbenchShell(), viewNameMatcher);
    }
    return cTabItem;
}
Also used : WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) DefaultCTabItem(org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem)

Example 4 with DefaultCTabItem

use of org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem in project jbosstools-hibernate by jbosstools.

the class LaunchConfigurationsDialog method selectExporter.

/**
 * Select exporter which should be selected
 * @param index index of the exporter
 */
public void selectExporter(int index) {
    new DefaultCTabItem(this, "Exporters").activate();
    new DefaultTableItem(new DefaultTable(this), index).setChecked(true);
}
Also used : DefaultTable(org.eclipse.reddeer.swt.impl.table.DefaultTable) DefaultTableItem(org.eclipse.reddeer.swt.impl.table.DefaultTableItem) DefaultCTabItem(org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem)

Aggregations

DefaultCTabItem (org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem)4 ImageSearchPage (org.eclipse.linuxtools.docker.reddeer.core.ui.wizards.ImageSearchPage)1 ImageTagSelectionPage (org.eclipse.linuxtools.docker.reddeer.core.ui.wizards.ImageTagSelectionPage)1 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 ShellIsActive (org.eclipse.reddeer.swt.condition.ShellIsActive)1 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)1 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)1 DefaultTable (org.eclipse.reddeer.swt.impl.table.DefaultTable)1 DefaultTableItem (org.eclipse.reddeer.swt.impl.table.DefaultTableItem)1 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)1 WorkbenchShell (org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell)1