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

📄 stafplatform.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 STAFPlatform extends WizardAction{    public boolean windows = false;    public boolean linux = false;    public boolean aix = false;    public boolean solaris = false;    public boolean unix = false;        public boolean hpux = false;       public String platformDetails = "";        public void execute(WizardBeanEvent event)    {        platformDetails = Platform.currentPlatform.toString();        if (platformDetails.indexOf("Windows") > -1)        {            windows = true;        }        else if (platformDetails.indexOf("Linux") > -1)        {            linux = true;            unix = true;        }        else if (platformDetails.indexOf("AIX") > -1)        {            aix = true;            unix = true;        }        else if (platformDetails.indexOf("SunOS") > -1)        {            solaris = true;            unix = true;        }        else if (platformDetails.indexOf("HP-UX") > -1)        {            hpux = true;            unix = true;        }        else        {            unix = true;        }    }        public boolean getWindows()    {        return windows;    }        public void setWindows(boolean bool)    {        windows = bool;    }           public boolean getUnix()    {        return unix;    }        public void setUnix(boolean bool)    {        unix = bool;    }        public boolean getLinux()    {        return linux;    }        public void setLinux(boolean bool)    {        linux = bool;    }    public boolean getAix()    {        return aix;    }        public void setAix(boolean bool)    {        aix = bool;    }        public boolean getSolaris()    {        return solaris;    }        public void setSolaris(boolean bool)    {        solaris = bool;    }        public boolean getHpux()    {        return hpux;    }        public void setHpux(boolean bool)    {        hpux = bool;    }        public boolean getWinOrLinux()    {                return windows || linux;    }        public boolean getWinOrLinuxOrAix()    {                return windows || linux || aix;    }        public String getPlatformDetails()    {        return platformDetails;    }        public void setPlatformDetails(String details)    {        platformDetails = details;    }}

⌨️ 快捷键说明

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