| File was renamed from opends/src/quicksetup/org/opends/quicksetup/ui/WelcomePanel.java |
| | |
| | | |
| | | import java.awt.Component; |
| | | |
| | | import org.opends.quicksetup.util.Utils; |
| | | |
| | | /** |
| | | * This panel is used to show a welcome message. |
| | | * |
| | | */ |
| | | class WelcomePanel extends QuickSetupStepPanel |
| | | class InstallWelcomePanel extends QuickSetupStepPanel |
| | | { |
| | | private static final long serialVersionUID = 6209217138897900860L; |
| | | |
| | |
| | | * Default constructor. |
| | | * |
| | | */ |
| | | public WelcomePanel() |
| | | public InstallWelcomePanel() |
| | | { |
| | | createLayout(); |
| | | } |
| | |
| | | * We can use org.opends.server.util.DynamicConstants without problems as it |
| | | * has been added to quicksetup.jar during build time. |
| | | */ |
| | | String[] args = |
| | | { org.opends.server.util.DynamicConstants.COMPACT_VERSION_STRING, |
| | | org.opends.server.util.DynamicConstants.BUILD_ID }; |
| | | return getMsg("welcome-panel-instructions", args); |
| | | String[] args; |
| | | String msgKey; |
| | | if (Utils.isWebStart()) |
| | | { |
| | | msgKey = "welcome-panel-webstart-instructions"; |
| | | args = new String[3]; |
| | | String cmd = Utils.isWindows()?"setup.bat":"setup"; |
| | | args[0] = UIFactory.applyFontToHtml(cmd, |
| | | UIFactory.INSTRUCTIONS_MONOSPACE_FONT); |
| | | args[1] = org.opends.server.util.DynamicConstants.COMPACT_VERSION_STRING; |
| | | args[2] = org.opends.server.util.DynamicConstants.BUILD_ID; |
| | | } |
| | | else |
| | | { |
| | | args = new String[2]; |
| | | args[0] = org.opends.server.util.DynamicConstants.COMPACT_VERSION_STRING; |
| | | args[1] = org.opends.server.util.DynamicConstants.BUILD_ID; |
| | | msgKey = "welcome-panel-offline-instructions"; |
| | | } |
| | | return getMsg(msgKey, args); |
| | | } |
| | | |
| | | /** |