📄 stafregistrationcondition.java
字号:
/*****************************************************************************//* Software Testing Automation Framework (STAF) *//* (C) Copyright IBM Corp. 2004, 2005 *//* *//* This software is licensed under the Common Public License (CPL) V1.0. *//*****************************************************************************/import com.installshield.wizard.*;import com.installshield.wizard.service.*;import com.installshield.util.*;import com.installshield.product.service.product.*;public class STAFRegistrationCondition extends WizardBeanCondition{ public boolean evaluateTrueCondition() { String selectedOptions = ""; if (this.getWizardBean().getServices().resolveString( "$W(stafPlatform.windows)").equals("true")) { selectedOptions = this.getWizardBean().getServices(). resolveString("$W(windowsOptions.windowsChoices)"); } else { selectedOptions = this.getWizardBean().getServices(). resolveString("$W(unixOptions.unixChoices)"); } if (selectedOptions.indexOf("Allow STAF to Register") > -1) { return true; } else { return false; } } public String defaultName() { return "STAF Registration condition"; } public String describe() { return "Returns true if the registration panel is to be displayed."; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -