/** * @return 单选按钮:同时删除目录下的内容; */ public SWTBotRadio radBtnAlsoDeleteContentsUnder() { assertTrue("参数错误,项目名称为 null。", prjName != null); String path = FileUtil.joinPath(FileUtil.getWorkspacePath(), prjName); String msg = TsUIConstants.getString("radBtnAlsoDeleteContentsUnder"); return dialogBot.radio(MessageFormat.format(msg, path)); }
private SWTBotRadio getExportAsTestTemplateButton() { return bot.radioWithId(org.gw4e.eclipse.wizard.runasmanual.SaveTestPage.GW4E_MANUAL_ELEMENT_ID, org.gw4e.eclipse.wizard.runasmanual.SaveTestPage.GW4E_MANUAL_BUTTON_EXPORT_AS_TEMPLATE); }
private SWTBotRadio getExportAsTestResultButton() { return bot.radioWithId(org.gw4e.eclipse.wizard.runasmanual.SaveTestPage.GW4E_MANUAL_ELEMENT_ID, org.gw4e.eclipse.wizard.runasmanual.SaveTestPage.GW4E_MANUAL_BUTTON_EXPORT_AS_RESULT); }
/** * @return 单选按钮:不删除内容; */ public SWTBotRadio radBtnDoNotDeleteContents() { return dialogBot.radio(TsUIConstants.getString("radBtnDoNotDeleteContents")); }
/** * @return 单选按钮:匹配率相同时排序策略,默认库优先; */ public SWTBotRadio tmRadBtnSortDefaultDBFirst() { return dlgBot.radio(TsUIConstants.getString("prefTMRadBtnSortDefaultDBFirst")); }
/** * @return 单选按钮:匹配率相同时排序策略,更新时间倒序排列; */ public SWTBotRadio tmRadBtnSortUpdateTimeReverse() { return dlgBot.radio(TsUIConstants.getString("prefTMRadBtnSortUpdateTimeReverse")); }
/** * @return 单选按钮:记忆库更新策略,始终增加; */ public SWTBotRadio tmRadBtnUpdateModeAlwaysAdd() { return dlgBot.radio(TsUIConstants.getString("prefTMRadBtnUpdateModeAlwaysAdd")); }
/** * @return 单选按钮:记忆库更新策略,重复覆盖; */ public SWTBotRadio tmRadBtnUpdateModeOverwrite() { return dlgBot.radio(TsUIConstants.getString("prefTMRadBtnUpdateModeOverwrite")); }
/** * @return 单选按钮:记忆库更新策略,重复忽略; */ public SWTBotRadio tmRadBtnUpdateModeIgnore() { return dlgBot.radio(TsUIConstants.getString("prefTMRadBtnUpdateModeIgnore")); }
/** * @return 单选按钮:术语库更新策略,始终增加; */ public SWTBotRadio tbRadBtnUpdateModeAlwaysAdd() { return dlgBot.radio(TsUIConstants.getString("prefTBRadBtnUpdateModeAlwaysAdd")); }
/** * @return 单选按钮:术语库更新策略,重复覆盖; */ public SWTBotRadio tbRadBtnUpdateModeOverwrite() { return dlgBot.radio(TsUIConstants.getString("prefTBRadBtnUpdateModeOverwrite")); }
/** * @return 单选按钮:术语库更新策略,重复合并; */ public SWTBotRadio tbRadBtnUpdateModeMerge() { return dlgBot.radio(TsUIConstants.getString("prefTBRadBtnUpdateModeMerge")); }
/** * @return 单选按钮:术语库更新策略,重复忽略; */ public SWTBotRadio tbRadBtnUpdateModeIgnore() { return dlgBot.radio(TsUIConstants.getString("prefTBRadBtnUpdateModeIgnore")); }
/** * @return 单选按钮:保留现有匹配; */ public SWTBotRadio transPreRadBtnOverwriteModeKeepCurrent() { return dlgBot.radio(TsUIConstants.getString("prefTransPreRadBtnOverwriteModeKeepCurrent")); }
/** * @return 单选按钮:如果匹配率比当前高,覆盖现有匹配; */ public SWTBotRadio transPreRadBtnOverwriteModeOverwriteIfHigher() { return dlgBot.radio(TsUIConstants.getString("prefTransPreRadBtnOverwriteModeOverwriteIfHigher")); }
/** * @return 单选按钮:始终覆盖现有匹配; */ public SWTBotRadio transPreRadBtnOverwriteModeAlwaysOverwrite() { return dlgBot.radio(TsUIConstants.getString("prefTransPreRadBtnOverwriteModeAlwaysOverwrite")); }
/** * @return 单选按钮:匹配所有条件; */ public SWTBotRadio radBtnMatchAllConditions() { return dialogBot.radio(TsUIConstants.getString("radBtnMatchAllConditions")); }
/** * @return 单选按钮:匹配任一条件; */ public SWTBotRadio radBtnMatchAnyCondition() { return dialogBot.radio(TsUIConstants.getString("radBtnMatchAnyCondition")); }
/** * @param bot * @param radioKey * @return ; */ public static SWTBotRadio radio(SWTBot bot, String radioKey) { return bot.radio(getString(radioKey)); }