Search in sources :

Example 1 with ConfigrationsAreLoaded

use of org.jboss.tools.hibernate.reddeer.condition.ConfigrationsAreLoaded in project jbosstools-hibernate by jbosstools.

the class KnownConfigurationsView method getConsoleConfigurations.

public List<TreeItem> getConsoleConfigurations() {
    Tree tree = null;
    try {
        tree = new DefaultTree(this);
    } catch (RedDeerException e) {
        return null;
    }
    new WaitUntil(new ConfigrationsAreLoaded(tree));
    return tree.getItems();
}
Also used : DefaultTree(org.eclipse.reddeer.swt.impl.tree.DefaultTree) RedDeerException(org.eclipse.reddeer.common.exception.RedDeerException) Tree(org.eclipse.reddeer.swt.api.Tree) DefaultTree(org.eclipse.reddeer.swt.impl.tree.DefaultTree) ConfigrationsAreLoaded(org.jboss.tools.hibernate.reddeer.condition.ConfigrationsAreLoaded) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Aggregations

RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)1 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 Tree (org.eclipse.reddeer.swt.api.Tree)1 DefaultTree (org.eclipse.reddeer.swt.impl.tree.DefaultTree)1 ConfigrationsAreLoaded (org.jboss.tools.hibernate.reddeer.condition.ConfigrationsAreLoaded)1