staffilesinuse.java

来自「Software Testing Automation Framework (S」· Java 代码 · 共 35 行

JAVA
35
字号
/*****************************************************************************//* Software Testing Automation Framework (STAF)                              *//* (C) Copyright IBM Corp. 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 STAFFilesInUse extends WizardAction{    String title = "Reboot system";    String message = "To process locked files, please restart the " +       "system now.  After the system reboots, restart the STAF " +       "installer to complete the installation.";       public void execute(WizardBeanEvent event)    {        if (event.getUserInterface() != null)        {	        // This is not silent mode, so we can display a message	 	        event.getUserInterface().displayUserMessage(title, message,	            UserInputRequest.MESSAGE);        }        else        {            System.out.println(message);        }                getWizard().exit(1000);    }}

⌨️ 快捷键说明

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