use of net.heartsome.test.swtbot.waits.IsComboEquals in project translationstudio8 by heartsome.
the class XlfEditor method selectLangPair.
/**
* 选择指定的语言对
* @param srcLang
* 源语言代码
* @param tgtLang
* 目标语言代码
*/
public void selectLangPair(String srcLang, String tgtLang) {
String langPair = srcLang + " -> " + tgtLang;
SWTBotCombo langCombo = getLangCombo();
langCombo.setSelection(langPair);
bot.waitUntil(new IsComboEquals(langCombo, langPair));
SWTBotAssert.assertText(langPair, langCombo);
}
use of net.heartsome.test.swtbot.waits.IsComboEquals in project translationstudio8 by heartsome.
the class XlfEditor method selectSegFilter.
/**
* 选择指定的文本段过滤器
* @param filterName
* 过滤器名称
*/
public void selectSegFilter(final String filterName) {
SWTBotCombo segFilterCombo = getSegFilterCombo();
segFilterCombo.setSelection(filterName);
bot.waitUntil(new IsComboEquals(segFilterCombo, filterName));
SWTBotAssert.assertText(filterName, segFilterCombo);
}
Aggregations