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;
}
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);
}
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;
}
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);
}
Aggregations