Search in sources :

Example 1 with IsComboEquals

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);
}
Also used : SWTBotCombo(org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo) IsComboEquals(net.heartsome.test.swtbot.waits.IsComboEquals)

Example 2 with IsComboEquals

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);
}
Also used : SWTBotCombo(org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo) IsComboEquals(net.heartsome.test.swtbot.waits.IsComboEquals)

Aggregations

IsComboEquals (net.heartsome.test.swtbot.waits.IsComboEquals)2 SWTBotCombo (org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo)2