package com.installshield.watchpoint.event.dialog.console;


import com.installshield.event.ui.*;
import com.installshield.wizard.console.*;
import com.installshield.util.*;

public class PanelWelcomeConsoleImpl {

    private static final String WELCOME_MESSAGE =
        "$L("
            + "com.installshield.product.i18n.ProductResources, "
            + "WelcomePanel.message, "
            + "$P(displayName), $P(displayName), "
            + "$P(displayName), $P(vendor), $P(vendorWebsite)"
            + ")";

    public void consoleInteractionWelcome(ISDialogContext context) {

    	ConsoleWizardUI consoleUI = (ConsoleWizardUI)context.getWizardUI();
        TTYDisplay tty = consoleUI.getTTY();
	
		//Display console interaction
        String welcomeText =
            new HtmlToTextConverter().convertText(
                context.getServices().resolveString(
                    WELCOME_MESSAGE));

        tty.printPage(welcomeText);
        tty.printLine();

    }

}
