Search in sources :

Example 1 with TreeIsAvailable

use of org.jboss.tools.openshift.reddeer.condition.TreeIsAvailable in project jbosstools-openshift by jbosstools.

the class TemplatesCreator method selectServerTemplate.

private void selectServerTemplate(String templateName) {
    new DefaultTabItem(OpenShiftLabel.TextLabels.SERVER_TEMPLATE).activate();
    new WaitUntil(new TreeIsAvailable());
    new DefaultTree().selectItems(new DefaultTreeItem(templateName));
}
Also used : DefaultTree(org.eclipse.reddeer.swt.impl.tree.DefaultTree) TreeIsAvailable(org.jboss.tools.openshift.reddeer.condition.TreeIsAvailable) DefaultTreeItem(org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem) DefaultTabItem(org.eclipse.reddeer.swt.impl.tab.DefaultTabItem) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 2 with TreeIsAvailable

use of org.jboss.tools.openshift.reddeer.condition.TreeIsAvailable in project jbosstools-openshift by jbosstools.

the class TemplatesCreator method selectLocalTemplate.

private void selectLocalTemplate(final String templateLocalPath) {
    new DefaultTabItem(OpenShiftLabel.TextLabels.CUSTOM_TEMPLATE).activate();
    new WaitWhile(new TreeIsAvailable());
    new LabeledText(OpenShiftLabel.TextLabels.SELECT_LOCAL_TEMPLATE).setText(templateLocalPath);
}
Also used : WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) TreeIsAvailable(org.jboss.tools.openshift.reddeer.condition.TreeIsAvailable) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) DefaultTabItem(org.eclipse.reddeer.swt.impl.tab.DefaultTabItem)

Aggregations

DefaultTabItem (org.eclipse.reddeer.swt.impl.tab.DefaultTabItem)2 TreeIsAvailable (org.jboss.tools.openshift.reddeer.condition.TreeIsAvailable)2 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)1 DefaultTree (org.eclipse.reddeer.swt.impl.tree.DefaultTree)1 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)1