Java 类org.eclipse.swtbot.swt.finder.waits.WaitForObjectCondition 实例源码

项目:tlaplus    文件:AbstractTest.java   
/**
 * @return waits for the TLA+ Toolbox shell to come available
 */
protected SWTBotShell waitForToolboxShell() {
    final WaitForObjectCondition<Shell> waitForShell = Conditions.waitForShell(WithText
            .<Shell> withText("TLA+ Toolbox"));
    bot.waitUntil(waitForShell);
    return new SWTBotShell(waitForShell.get(0));
}
项目:gw4e.project    文件:GraphElementProperties.java   
protected <T extends Widget> List<T> widget(final Matcher<T> matcher) {
    WaitForObjectCondition<T> waiWidget = Conditions.waitForWidget(matcher);
    bot.waitUntilWidgetAppears(waiWidget);
    return waiWidget.getAllMatches();
}