⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stafdefaultinstalllocation.java

📁 Software Testing Automation Framework (STAF)的开发代码
💻 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 STAFDefaultInstallLocation extends WizardAction{    private String defaultInstallLocation = "";        public void execute(WizardBeanEvent event)    {        // Do not override the default install location if the user        // has already specified the location during a silent install             if (defaultInstallLocation.equals(""))        {                     if (resolveString("$W(stafPlatform.windows)").equals("true"))            {                defaultInstallLocation = "C:\\STAF";            }            else            {                defaultInstallLocation = "/usr/local/staf";            }        }                        ProductService service = null;        try        {            service = (ProductService)getService(ProductService.NAME);                        service.setProductBeanProperty(                        ProductService.DEFAULT_PRODUCT_SOURCE,                        null, "installLocation", defaultInstallLocation);        }        catch (ServiceException ex)        {            ex.printStackTrace();        }    }        public String getDefaultInstallLocation()    {        return defaultInstallLocation;    }        public void setDefaultInstallLocation(String location)    {        defaultInstallLocation = location;    }        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -