//# 0 errors, 136 messages
//#
/*
    //#StepInstall.java:1:1: class: com.dmdirc.installer.ui.StepInstall$2
    //#StepInstall.java:1:1: method: com.dmdirc.installer.ui.StepInstall$2.com.dmdirc.installer.ui.StepInstall$2__static_init
    //#StepInstall.java:1:1: class: com.dmdirc.installer.ui.StepInstall$1
    //#StepInstall.java:1:1: method: com.dmdirc.installer.ui.StepInstall$1.com.dmdirc.installer.ui.StepInstall$1__static_init
    //#StepInstall.java:1:1: class: com.dmdirc.installer.ui.StepInstall
    //#StepInstall.java:1:1: method: com.dmdirc.installer.ui.StepInstall.com.dmdirc.installer.ui.StepInstall__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 com.dmdirc.installer.TextStep;

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

import java.awt.Insets;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;

/**
 * This confirms the settings chosen in the previous step
 */
public final class StepInstall extends SwingStep implements TextStep {
    //#StepInstall.java:37: method: TextLabel com.dmdirc.installer.ui.StepInstall.access$000(StepInstall)
    //#input(TextLabel access$000(StepInstall)): x0
    //#input(TextLabel access$000(StepInstall)): x0.infoLabel
    //#output(TextLabel access$000(StepInstall)): return_value
    //#pre[1] (TextLabel access$000(StepInstall)): x0 != null
    //#post(TextLabel access$000(StepInstall)): return_value == x0.infoLabel
    //#post(TextLabel access$000(StepInstall)): init'ed(return_value)
    //#StepInstall.java:37: end of method: TextLabel com.dmdirc.installer.ui.StepInstall.access$000(StepInstall)

    /**
     * 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;
    /** Text area showing the install information */
    private final TextLabel infoLabel = new TextLabel("Beginning Install");
    /** Scroll pane holding text area */
    final JScrollPane scrollPane;

    /**
     * Creates a new instance of StepInstall.
     */
    public StepInstall() {
        super();
    //#StepInstall.java:54: method: void com.dmdirc.installer.ui.StepInstall.com.dmdirc.installer.ui.StepInstall()
    //#input(void com.dmdirc.installer.ui.StepInstall()): this
    //#output(void com.dmdirc.installer.ui.StepInstall()): new JScrollPane(StepInstall#3) num objects
    //#output(void com.dmdirc.installer.ui.StepInstall()): new TextLabel(StepInstall#1) num objects
    //#output(void com.dmdirc.installer.ui.StepInstall()): this.infoLabel.__Tag
    //#output(void com.dmdirc.installer.ui.StepInstall()): this.infoLabel
    //#output(void com.dmdirc.installer.ui.StepInstall()): this.scrollPane
    //#new obj(void com.dmdirc.installer.ui.StepInstall()): new JScrollPane(StepInstall#3)
    //#new obj(void com.dmdirc.installer.ui.StepInstall()): new TextLabel(StepInstall#1)
    //#post(void com.dmdirc.installer.ui.StepInstall()): this.infoLabel == &new TextLabel(StepInstall#1)
    //#post(void com.dmdirc.installer.ui.StepInstall()): this.scrollPane == &new JScrollPane(StepInstall#3)
    //#post(void com.dmdirc.installer.ui.StepInstall()): new JScrollPane(StepInstall#3) num objects == 1
    //#post(void com.dmdirc.installer.ui.StepInstall()): new TextLabel(StepInstall#1) num objects == 1
    //#post(void com.dmdirc.installer.ui.StepInstall()): this.infoLabel.__Tag == com/dmdirc/installer/ui/TextLabel
    //#unanalyzed(void com.dmdirc.installer.ui.StepInstall()): Effects-of-calling:javax.swing.text.DefaultStyledDocument
    //#unanalyzed(void com.dmdirc.installer.ui.StepInstall()): Effects-of-calling:javax.swing.JTextPane
    //#unanalyzed(void com.dmdirc.installer.ui.StepInstall()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setOpaque
    //#unanalyzed(void com.dmdirc.installer.ui.StepInstall()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setEditable
    //#unanalyzed(void com.dmdirc.installer.ui.StepInstall()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setHighlighter
    //#unanalyzed(void com.dmdirc.installer.ui.StepInstall()): Effects-of-calling:java.awt.Insets
    //#unanalyzed(void com.dmdirc.installer.ui.StepInstall()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setMargin
    //#unanalyzed(void com.dmdirc.installer.ui.StepInstall()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setText
    //#unanalyzed(void com.dmdirc.installer.ui.StepInstall()): Effects-of-calling:javax.swing.JPanel
        setLayout(new BorderLayout());
    //#StepInstall.java:55: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.StepInstall:setLayout(LayoutManager)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.StepInstall
    //#    method: void com.dmdirc.installer.ui.StepInstall()
    //#    unanalyzed callee: void com.dmdirc.installer.ui.StepInstall:setLayout(LayoutManager)
        scrollPane = new JScrollPane(infoLabel,
                                     JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                     JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        infoLabel.setMargin(new Insets(5, 5, 5, 5));
    //#StepInstall.java:59: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.TextLabel:setMargin(Insets)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.StepInstall
    //#    method: void com.dmdirc.installer.ui.StepInstall()
    //#    unanalyzed callee: void com.dmdirc.installer.ui.TextLabel:setMargin(Insets)
        add(scrollPane, BorderLayout.CENTER);
    //#StepInstall.java:60: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.StepInstall:add(Component, Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.StepInstall
    //#    method: void com.dmdirc.installer.ui.StepInstall()
    //#    unanalyzed callee: void com.dmdirc.installer.ui.StepInstall:add(Component, Object)
    }
    //#StepInstall.java:61: end of method: void com.dmdirc.installer.ui.StepInstall.com.dmdirc.installer.ui.StepInstall()

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

    /** {@inheritDoc} */
    @Override
    public Image getIcon() {
        return null;
    //#StepInstall.java:72: method: Image com.dmdirc.installer.ui.StepInstall.getIcon()
    //#output(Image getIcon()): return_value
    //#post(Image getIcon()): return_value == null
    //#StepInstall.java:72: end of method: Image com.dmdirc.installer.ui.StepInstall.getIcon()
    }

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

    /** {@inheritDoc} */
    @Override
    public synchronized void addText(final String text) {
        SwingUtilities.invokeLater(new Runnable() {
    //#StepInstall.java:84: method: void com.dmdirc.installer.ui.StepInstall$1.com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)
    //#input(void com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)): Param_1
    //#input(void com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)): Param_2
    //#input(void com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)): this
    //#output(void com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)): this.this$0
    //#output(void com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)): this.val$text
    //#post(void com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)): this.this$0 == Param_1
    //#post(void com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)): init'ed(this.this$0)
    //#post(void com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)): this.val$text == Param_2
    //#post(void com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)): init'ed(this.val$text)
    //#StepInstall.java:84: end of method: void com.dmdirc.installer.ui.StepInstall$1.com.dmdirc.installer.ui.StepInstall$1(StepInstall, String)
    //#StepInstall.java:84: method: void com.dmdirc.installer.ui.StepInstall.addText(String)
    //#input(void addText(String)): text
    //#input(void addText(String)): this

            @Override
            public void run() {
                infoLabel.setText(infoLabel.getText() + text + "\n");
    //#StepInstall.java:88: method: void com.dmdirc.installer.ui.StepInstall$1.run()
    //#StepInstall.java:88: Warning: method not available - call not analyzed
    //#    call on String com.dmdirc.installer.ui.TextLabel:getText()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.StepInstall$1
    //#    method: void run()
    //#    unanalyzed callee: String com.dmdirc.installer.ui.TextLabel:getText()
    //#StepInstall.java:88: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.TextLabel:setText(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.StepInstall$1
    //#    method: void run()
    //#    unanalyzed callee: void com.dmdirc.installer.ui.TextLabel:setText(String)
    //#input(void run()): "&#10;"._tainted
    //#input(void run()): this
    //#input(void run()): this.this$0
    //#input(void run()): this.this$0.infoLabel
    //#input(void run()): this.val$text
    //#input(void run()): this.val$text._tainted
    //#pre[2] (void run()): this.this$0 != null
    //#pre[3] (void run()): this.infoLabel != null
            }
    //#StepInstall.java:89: end of method: void com.dmdirc.installer.ui.StepInstall$1.run()
        });
    }
    //#StepInstall.java:91: end of method: void com.dmdirc.installer.ui.StepInstall.addText(String)

    /** {@inheritDoc} */
    @Override
    public synchronized void setText(final String text) {
        SwingUtilities.invokeLater(new Runnable() {
    //#StepInstall.java:96: method: void com.dmdirc.installer.ui.StepInstall$2.com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)
    //#input(void com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)): Param_1
    //#input(void com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)): Param_2
    //#input(void com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)): this
    //#output(void com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)): this.this$0
    //#output(void com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)): this.val$text
    //#post(void com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)): this.this$0 == Param_1
    //#post(void com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)): init'ed(this.this$0)
    //#post(void com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)): this.val$text == Param_2
    //#post(void com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)): init'ed(this.val$text)
    //#StepInstall.java:96: end of method: void com.dmdirc.installer.ui.StepInstall$2.com.dmdirc.installer.ui.StepInstall$2(StepInstall, String)
    //#StepInstall.java:96: method: void com.dmdirc.installer.ui.StepInstall.setText(String)
    //#input(void setText(String)): text
    //#input(void setText(String)): this

            @Override
            public void run() {
                infoLabel.setText(text);
    //#StepInstall.java:100: method: void com.dmdirc.installer.ui.StepInstall$2.run()
    //#StepInstall.java:100: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.TextLabel:setText(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.StepInstall$2
    //#    method: void run()
    //#    unanalyzed callee: void com.dmdirc.installer.ui.TextLabel:setText(String)
    //#input(void run()): this
    //#input(void run()): this.this$0
    //#input(void run()): this.this$0.infoLabel
    //#input(void run()): this.val$text
    //#pre[2] (void run()): this.this$0 != null
    //#pre[3] (void run()): this.infoLabel != null
            }
    //#StepInstall.java:101: end of method: void com.dmdirc.installer.ui.StepInstall$2.run()
        });
    }
    //#StepInstall.java:103: end of method: void com.dmdirc.installer.ui.StepInstall.setText(String)
}
    //#output(com.dmdirc.installer.ui.StepInstall$2__static_init): __Descendant_Table[com/dmdirc/installer/ui/StepInstall$2]
    //#output(com.dmdirc.installer.ui.StepInstall$2__static_init): __Dispatch_Table.run()V
    //#post(com.dmdirc.installer.ui.StepInstall$2__static_init): __Descendant_Table[com/dmdirc/installer/ui/StepInstall$2] == &__Dispatch_Table
    //#post(com.dmdirc.installer.ui.StepInstall$2__static_init): __Dispatch_Table.run()V == &run
    //#StepInstall.java:: end of method: com.dmdirc.installer.ui.StepInstall$2.com.dmdirc.installer.ui.StepInstall$2__static_init
    //#StepInstall.java:: end of class: com.dmdirc.installer.ui.StepInstall$2
    //#output(com.dmdirc.installer.ui.StepInstall$1__static_init): __Descendant_Table[com/dmdirc/installer/ui/StepInstall$1]
    //#output(com.dmdirc.installer.ui.StepInstall$1__static_init): __Dispatch_Table.run()V
    //#post(com.dmdirc.installer.ui.StepInstall$1__static_init): __Descendant_Table[com/dmdirc/installer/ui/StepInstall$1] == &__Dispatch_Table
    //#post(com.dmdirc.installer.ui.StepInstall$1__static_init): __Dispatch_Table.run()V == &run
    //#StepInstall.java:: end of method: com.dmdirc.installer.ui.StepInstall$1.com.dmdirc.installer.ui.StepInstall$1__static_init
    //#StepInstall.java:: end of class: com.dmdirc.installer.ui.StepInstall$1
    //#output(com.dmdirc.installer.ui.StepInstall__static_init): __Descendant_Table[com/dmdirc/installer/ui/StepInstall]
    //#output(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.addText(Ljava/lang/String;)V
    //#output(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.getIcon()Ljava/awt/Image;
    //#output(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.getStepDescription()Ljava/lang/String;
    //#output(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.getStepName()Ljava/lang/String;
    //#output(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.setText(Ljava/lang/String;)V
    //#output(com.dmdirc.installer.ui.StepInstall__static_init): com/dmdirc/installer/Step.__Descendant_Table[com/dmdirc/installer/ui/StepInstall]
    //#output(com.dmdirc.installer.ui.StepInstall__static_init): com/dmdirc/installer/TextStep.__Descendant_Table[com/dmdirc/installer/ui/StepInstall]
    //#output(com.dmdirc.installer.ui.StepInstall__static_init): com/dmdirc/installer/ui/SwingStep.__Descendant_Table[com/dmdirc/installer/ui/StepInstall]
    //#post(com.dmdirc.installer.ui.StepInstall__static_init): __Descendant_Table[com/dmdirc/installer/ui/StepInstall] == &__Dispatch_Table
    //#post(com.dmdirc.installer.ui.StepInstall__static_init): com/dmdirc/installer/Step.__Descendant_Table[com/dmdirc/installer/ui/StepInstall] == &__Dispatch_Table
    //#post(com.dmdirc.installer.ui.StepInstall__static_init): com/dmdirc/installer/TextStep.__Descendant_Table[com/dmdirc/installer/ui/StepInstall] == &__Dispatch_Table
    //#post(com.dmdirc.installer.ui.StepInstall__static_init): com/dmdirc/installer/ui/SwingStep.__Descendant_Table[com/dmdirc/installer/ui/StepInstall] == &__Dispatch_Table
    //#post(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.addText(Ljava/lang/String;)V == &addText
    //#post(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.getIcon()Ljava/awt/Image; == &getIcon
    //#post(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.getStepDescription()Ljava/lang/String; == &getStepDescription
    //#post(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.getStepName()Ljava/lang/String; == &getStepName
    //#post(com.dmdirc.installer.ui.StepInstall__static_init): __Dispatch_Table.setText(Ljava/lang/String;)V == &setText
    //#StepInstall.java:: end of method: com.dmdirc.installer.ui.StepInstall.com.dmdirc.installer.ui.StepInstall__static_init
    //#StepInstall.java:: end of class: com.dmdirc.installer.ui.StepInstall
