//# 0 errors, 53 messages
//#
/*
    //#StepWelcome.java:1:1: class: com.dmdirc.installer.ui.StepWelcome
    //#StepWelcome.java:1:1: method: com.dmdirc.installer.ui.StepWelcome.com.dmdirc.installer.ui.StepWelcome__static_init
 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.dmdirc.installer.ui;

import java.awt.BorderLayout;
import java.awt.Image;
import java.awt.Toolkit;

/**
 * Tells the user what this application does
 */
public final class StepWelcome extends SwingStep {

    /**
     * A version number for this class. It should be changed whenever the class
     * structure is changed (or anything else that would prevent serialized
     * objects being unserialized with the new class).
     */
    private static final long serialVersionUID = 2;

    /**
     * Creates a new instance of StepWelcome.
     *
     * @param releaseName 
     */
    public StepWelcome(final String releaseName) {
        super();
    //#StepWelcome.java:46: method: void com.dmdirc.installer.ui.StepWelcome.com.dmdirc.installer.ui.StepWelcome(String)
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): " installer. This program "._tainted
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): "Mc Cormack and Gregory Holmes. DMDirc is released for free "._tainted
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): "Welcome to the "._tainted
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): "cross-platform IRC client developed by Chris Smith, Shane "._tainted
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): "this program to cancel the installation."._tainted
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): "under the MIT license; for more information, please visit "._tainted
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): "will install DMDirc on this computer.&#10;&#10;DMDirc is a "._tainted
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): "www.DMDirc.com.&#10;&#10;Click "Next" to continue, or close "._tainted
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): releaseName
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): releaseName._tainted
    //#input(void com.dmdirc.installer.ui.StepWelcome(String)): this
    //#unanalyzed(void com.dmdirc.installer.ui.StepWelcome(String)): Effects-of-calling:javax.swing.text.DefaultStyledDocument
    //#unanalyzed(void com.dmdirc.installer.ui.StepWelcome(String)): Effects-of-calling:javax.swing.JTextPane
    //#unanalyzed(void com.dmdirc.installer.ui.StepWelcome(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setOpaque
    //#unanalyzed(void com.dmdirc.installer.ui.StepWelcome(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setEditable
    //#unanalyzed(void com.dmdirc.installer.ui.StepWelcome(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setHighlighter
    //#unanalyzed(void com.dmdirc.installer.ui.StepWelcome(String)): Effects-of-calling:java.awt.Insets
    //#unanalyzed(void com.dmdirc.installer.ui.StepWelcome(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setMargin
    //#unanalyzed(void com.dmdirc.installer.ui.StepWelcome(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setText
    //#unanalyzed(void com.dmdirc.installer.ui.StepWelcome(String)): Effects-of-calling:javax.swing.JPanel

        setLayout(new BorderLayout());
    //#StepWelcome.java:48: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.StepWelcome:setLayout(LayoutManager)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.StepWelcome
    //#    method: void com.dmdirc.installer.ui.StepWelcome(String)
    //#    unanalyzed callee: void com.dmdirc.installer.ui.StepWelcome:setLayout(LayoutManager)

        add(new TextLabel(
    //#StepWelcome.java:50: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.StepWelcome:add(Component, Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.StepWelcome
    //#    method: void com.dmdirc.installer.ui.StepWelcome(String)
    //#    unanalyzed callee: void com.dmdirc.installer.ui.StepWelcome:add(Component, Object)
                "Welcome to the " + releaseName + " installer. This program " +
                "will install DMDirc on this computer.\n\nDMDirc is a " +
                "cross-platform IRC client developed by Chris Smith, Shane " +
                "Mc Cormack and Gregory Holmes. DMDirc is released for free " +
                "under the MIT license; for more information, please visit " +
                "www.DMDirc.com.\n\nClick \"Next\" to continue, or close " +
                "this program to cancel the installation."), BorderLayout.CENTER);
    }
    //#StepWelcome.java:58: end of method: void com.dmdirc.installer.ui.StepWelcome.com.dmdirc.installer.ui.StepWelcome(String)

    /** {@inheritDoc} */
    @Override
    public String getStepName() {
        return "Welcome";
    //#StepWelcome.java:63: method: String com.dmdirc.installer.ui.StepWelcome.getStepName()
    //#output(String getStepName()): return_value
    //#post(String getStepName()): return_value == &"Welcome"
    //#StepWelcome.java:63: end of method: String com.dmdirc.installer.ui.StepWelcome.getStepName()
    }

    /** {@inheritDoc} */
    @Override
    public Image getIcon() {
        return Toolkit.getDefaultToolkit().createImage(ClassLoader.getSystemResource("com/dmdirc/res/icon.png"));
    //#StepWelcome.java:69: method: Image com.dmdirc.installer.ui.StepWelcome.getIcon()
    //#output(Image getIcon()): return_value
    //#presumption(Image getIcon()): java.awt.Toolkit:getDefaultToolkit(...)@69 != null
    //#post(Image getIcon()): init'ed(return_value)
    //#StepWelcome.java:69: end of method: Image com.dmdirc.installer.ui.StepWelcome.getIcon()
    }

    /** {@inheritDoc} */
    @Override
    public String getStepDescription() {
        return "";
    //#StepWelcome.java:75: method: String com.dmdirc.installer.ui.StepWelcome.getStepDescription()
    //#output(String getStepDescription()): return_value
    //#post(String getStepDescription()): return_value == &""
    //#StepWelcome.java:75: end of method: String com.dmdirc.installer.ui.StepWelcome.getStepDescription()
    }
}
    //#output(com.dmdirc.installer.ui.StepWelcome__static_init): __Descendant_Table[com/dmdirc/installer/ui/StepWelcome]
    //#output(com.dmdirc.installer.ui.StepWelcome__static_init): __Dispatch_Table.getIcon()Ljava/awt/Image;
    //#output(com.dmdirc.installer.ui.StepWelcome__static_init): __Dispatch_Table.getStepDescription()Ljava/lang/String;
    //#output(com.dmdirc.installer.ui.StepWelcome__static_init): __Dispatch_Table.getStepName()Ljava/lang/String;
    //#output(com.dmdirc.installer.ui.StepWelcome__static_init): com/dmdirc/installer/Step.__Descendant_Table[com/dmdirc/installer/ui/StepWelcome]
    //#output(com.dmdirc.installer.ui.StepWelcome__static_init): com/dmdirc/installer/ui/SwingStep.__Descendant_Table[com/dmdirc/installer/ui/StepWelcome]
    //#post(com.dmdirc.installer.ui.StepWelcome__static_init): __Descendant_Table[com/dmdirc/installer/ui/StepWelcome] == &__Dispatch_Table
    //#post(com.dmdirc.installer.ui.StepWelcome__static_init): com/dmdirc/installer/Step.__Descendant_Table[com/dmdirc/installer/ui/StepWelcome] == &__Dispatch_Table
    //#post(com.dmdirc.installer.ui.StepWelcome__static_init): com/dmdirc/installer/ui/SwingStep.__Descendant_Table[com/dmdirc/installer/ui/StepWelcome] == &__Dispatch_Table
    //#post(com.dmdirc.installer.ui.StepWelcome__static_init): __Dispatch_Table.getIcon()Ljava/awt/Image; == &getIcon
    //#post(com.dmdirc.installer.ui.StepWelcome__static_init): __Dispatch_Table.getStepDescription()Ljava/lang/String; == &getStepDescription
    //#post(com.dmdirc.installer.ui.StepWelcome__static_init): __Dispatch_Table.getStepName()Ljava/lang/String; == &getStepName
    //#StepWelcome.java:: end of method: com.dmdirc.installer.ui.StepWelcome.com.dmdirc.installer.ui.StepWelcome__static_init
    //#StepWelcome.java:: end of class: com.dmdirc.installer.ui.StepWelcome
