//# 0 errors, 101 messages
//#
/*
    //#UpdaterLabel.java:1:1: class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#UpdaterLabel.java:1:1: method: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init
 * Copyright (c) 2006-2008 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.addons.ui_swing.components.statusbar;

import com.dmdirc.addons.ui_swing.MainFrame;
import com.dmdirc.addons.ui_swing.dialogs.updater.SwingRestartDialog;
import com.dmdirc.addons.ui_swing.dialogs.updater.SwingUpdaterDialog;
import com.dmdirc.updater.UpdateCheckerListener;
import com.dmdirc.ui.IconManager;
import com.dmdirc.ui.interfaces.StatusBarComponent;
import com.dmdirc.updater.UpdateChecker;
import com.dmdirc.updater.UpdateChecker.STATE;

import java.awt.Dialog.ModalityType;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.BorderFactory;
import javax.swing.JLabel;

/**
 * Updater label is responsible for handling the display of updates in the
 * status bar.
 */
public class UpdaterLabel extends JLabel implements StatusBarComponent, 
        MouseListener, UpdateCheckerListener {

    /**
     * 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 = 1;
    /** Swing controller. */
    private MainFrame mainFrame;

    /**
     * Instantiates a new updater label, handles showing updates on the status bar.
     * 
     * @param mainFrame Main frame
     */
    public UpdaterLabel(final MainFrame mainFrame) {
        super();
    //#UpdaterLabel.java:63: method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)): mainFrame
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)): this
    //#output(void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)): this.mainFrame
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)): this.mainFrame == mainFrame
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)): init'ed(this.mainFrame)
        
        this.mainFrame = mainFrame;
        setBorder(BorderFactory.createEtchedBorder());
    //#UpdaterLabel.java:66: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setBorder(Border)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setBorder(Border)
        addMouseListener(this);
    //#UpdaterLabel.java:67: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:addMouseListener(MouseListener)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:addMouseListener(MouseListener)
        UpdateChecker.addListener(this);
    //#UpdaterLabel.java:68: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.updater.UpdateChecker:addListener(UpdateCheckerListener)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)
    //#    unanalyzed callee: void com.dmdirc.updater.UpdateChecker:addListener(UpdateCheckerListener)
        setVisible(false);
    //#UpdaterLabel.java:69: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setVisible(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setVisible(bool)
    }
    //#UpdaterLabel.java:70: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel(MainFrame)

    /**
     * {@inheritDoc}
     *
     * @param mouseEvent Mouse event
     */
    @Override
    public void mousePressed(final MouseEvent mouseEvent) {
    //Ignore.
    }
    //#UpdaterLabel.java:80: method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mousePressed(MouseEvent)
    //#UpdaterLabel.java:80: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mousePressed(MouseEvent)

    /**
     * {@inheritDoc}
     *
     * @param mouseEvent Mouse event
     */
    @Override
    public void mouseReleased(final MouseEvent mouseEvent) {
    //Ignore.
    }
    //#UpdaterLabel.java:90: method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mouseReleased(MouseEvent)
    //#UpdaterLabel.java:90: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mouseReleased(MouseEvent)

    /**
     * {@inheritDoc}
     *
     * @param mouseEvent Mouse event
     */
    @Override
    public void mouseEntered(final MouseEvent mouseEvent) {
    //Ignore.
    }
    //#UpdaterLabel.java:100: method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mouseEntered(MouseEvent)
    //#UpdaterLabel.java:100: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mouseEntered(MouseEvent)

    /**
     * {@inheritDoc}
     *
     * @param mouseEvent Mouse event
     */
    @Override
    public void mouseExited(final MouseEvent mouseEvent) {
    //Ignore.
    }
    //#UpdaterLabel.java:110: method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mouseExited(MouseEvent)
    //#UpdaterLabel.java:110: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mouseExited(MouseEvent)

    /**
     * {@inheritDoc}
     *
     * @param mouseEvent Mouse event
     */
    @Override
    public void mouseClicked(final MouseEvent mouseEvent) {
        if (mouseEvent.getButton() == MouseEvent.BUTTON1) {
    //#UpdaterLabel.java:119: method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mouseClicked(MouseEvent)
    //#input(void mouseClicked(MouseEvent)): com.dmdirc.updater.UpdateChecker$STATE.CHECKING
    //#input(void mouseClicked(MouseEvent)): com.dmdirc.updater.UpdateChecker$STATE.RESTART_REQUIRED
    //#input(void mouseClicked(MouseEvent)): java.awt.Dialog$ModalityType.MODELESS
    //#input(void mouseClicked(MouseEvent)): mouseEvent
    //#input(void mouseClicked(MouseEvent)): this
    //#input(void mouseClicked(MouseEvent)): this.mainFrame
    //#pre[1] (void mouseClicked(MouseEvent)): mouseEvent != null
    //#pre[3] (void mouseClicked(MouseEvent)): (soft) init'ed(this.mainFrame)
    //#presumption(void mouseClicked(MouseEvent)): init'ed(com.dmdirc.updater.UpdateChecker$STATE.CHECKING)
    //#presumption(void mouseClicked(MouseEvent)): init'ed(com.dmdirc.updater.UpdateChecker$STATE.RESTART_REQUIRED)
    //#presumption(void mouseClicked(MouseEvent)): com.dmdirc.updater.UpdateChecker:getStatus(...)@120 != null
    //#presumption(void mouseClicked(MouseEvent)): com.dmdirc.updater.UpdateChecker:getStatus(...)@124 != null
    //#presumption(void mouseClicked(MouseEvent)): init'ed(java.awt.Dialog$ModalityType.MODELESS)
    //#test_vector(void mouseClicked(MouseEvent)): com.dmdirc.updater.UpdateChecker_STATE:equals(...)@120: {0}, {1}
    //#test_vector(void mouseClicked(MouseEvent)): com.dmdirc.updater.UpdateChecker_STATE:equals(...)@124: {1}, {0}
    //#test_vector(void mouseClicked(MouseEvent)): java.awt.event.MouseEvent:getButton(...)@119: {-2_147_483_648..0, 2..4_294_967_295}, {1}
            if (UpdateChecker.getStatus().equals(UpdateChecker.STATE.RESTART_REQUIRED)) {
    //#UpdaterLabel.java:120: Warning: method not available - call not analyzed
    //#    call on UpdateChecker$STATE com.dmdirc.updater.UpdateChecker:getStatus()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void mouseClicked(MouseEvent)
    //#    unanalyzed callee: UpdateChecker$STATE com.dmdirc.updater.UpdateChecker:getStatus()
    //#UpdaterLabel.java:120: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void mouseClicked(MouseEvent)
    //#    unanalyzed callee: bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
                SwingRestartDialog restartDialog = new SwingRestartDialog(
    //#UpdaterLabel.java:121: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.dialogs.updater.SwingRestartDialog(MainFrame, Dialog$ModalityType)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void mouseClicked(MouseEvent)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.dialogs.updater.SwingRestartDialog(MainFrame, Dialog$ModalityType)
                        mainFrame, ModalityType.MODELESS);
                restartDialog.setVisible(true);
    //#UpdaterLabel.java:123: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.dialogs.updater.SwingRestartDialog:setVisible(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void mouseClicked(MouseEvent)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.dialogs.updater.SwingRestartDialog:setVisible(bool)
            } else if (!UpdateChecker.getStatus().equals(UpdateChecker.STATE.CHECKING)) {
    //#UpdaterLabel.java:124: Warning: method not available - call not analyzed
    //#    call on UpdateChecker$STATE com.dmdirc.updater.UpdateChecker:getStatus()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void mouseClicked(MouseEvent)
    //#    unanalyzed callee: UpdateChecker$STATE com.dmdirc.updater.UpdateChecker:getStatus()
    //#UpdaterLabel.java:124: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void mouseClicked(MouseEvent)
    //#    unanalyzed callee: bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
                SwingUpdaterDialog.showSwingUpdaterDialog(
    //#UpdaterLabel.java:125: Warning: method not available - call not analyzed
    //#    call on List com.dmdirc.updater.UpdateChecker:getAvailableUpdates()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void mouseClicked(MouseEvent)
    //#    unanalyzed callee: List com.dmdirc.updater.UpdateChecker:getAvailableUpdates()
    //#UpdaterLabel.java:125: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.dialogs.updater.SwingUpdaterDialog:showSwingUpdaterDialog(List, MainFrame)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void mouseClicked(MouseEvent)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.dialogs.updater.SwingUpdaterDialog:showSwingUpdaterDialog(List, MainFrame)
                        UpdateChecker.getAvailableUpdates(), mainFrame);
            }
        }
    }
    //#UpdaterLabel.java:129: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.mouseClicked(MouseEvent)

    /** {@inheritDoc} */
    @Override
    public void statusChanged(final STATE newStatus) {
        if (newStatus.equals(STATE.IDLE)) {
    //#UpdaterLabel.java:134: method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.statusChanged(UpdateChecker$STATE)
    //#UpdaterLabel.java:134: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
    //#input(void statusChanged(UpdateChecker$STATE)): com.dmdirc.updater.UpdateChecker$STATE.CHECKING
    //#input(void statusChanged(UpdateChecker$STATE)): com.dmdirc.updater.UpdateChecker$STATE.IDLE
    //#input(void statusChanged(UpdateChecker$STATE)): com.dmdirc.updater.UpdateChecker$STATE.RESTART_REQUIRED
    //#input(void statusChanged(UpdateChecker$STATE)): com.dmdirc.updater.UpdateChecker$STATE.UPDATES_AVAILABLE
    //#input(void statusChanged(UpdateChecker$STATE)): newStatus
    //#input(void statusChanged(UpdateChecker$STATE)): this
    //#pre[1] (void statusChanged(UpdateChecker$STATE)): newStatus != null
    //#presumption(void statusChanged(UpdateChecker$STATE)): com.dmdirc.ui.IconManager:getIconManager(...)@142 != null
    //#presumption(void statusChanged(UpdateChecker$STATE)): com.dmdirc.ui.IconManager:getIconManager(...)@146 != null
    //#presumption(void statusChanged(UpdateChecker$STATE)): com.dmdirc.ui.IconManager:getIconManager(...)@149 != null
    //#presumption(void statusChanged(UpdateChecker$STATE)): init'ed(com.dmdirc.updater.UpdateChecker$STATE.CHECKING)
    //#presumption(void statusChanged(UpdateChecker$STATE)): init'ed(com.dmdirc.updater.UpdateChecker$STATE.IDLE)
    //#presumption(void statusChanged(UpdateChecker$STATE)): init'ed(com.dmdirc.updater.UpdateChecker$STATE.RESTART_REQUIRED)
    //#presumption(void statusChanged(UpdateChecker$STATE)): init'ed(com.dmdirc.updater.UpdateChecker$STATE.UPDATES_AVAILABLE)
    //#test_vector(void statusChanged(UpdateChecker$STATE)): com.dmdirc.updater.UpdateChecker_STATE:equals(...)@134: {0}, {1}
    //#test_vector(void statusChanged(UpdateChecker$STATE)): com.dmdirc.updater.UpdateChecker_STATE:equals(...)@140: {0}, {1}
    //#test_vector(void statusChanged(UpdateChecker$STATE)): com.dmdirc.updater.UpdateChecker_STATE:equals(...)@144: {0}, {1}
    //#test_vector(void statusChanged(UpdateChecker$STATE)): com.dmdirc.updater.UpdateChecker_STATE:equals(...)@147: {0}, {1}
            setVisible(false);
    //#UpdaterLabel.java:135: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setVisible(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setVisible(bool)
        } else {
            setVisible(true);
    //#UpdaterLabel.java:137: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setVisible(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setVisible(bool)
        }

        if (newStatus.equals(STATE.CHECKING)) {
    //#UpdaterLabel.java:140: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
            setToolTipText("Checking for updates...");
    //#UpdaterLabel.java:141: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setToolTipText(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setToolTipText(String)
            setIcon(IconManager.getIconManager().
    //#UpdaterLabel.java:142: Warning: method not available - call not analyzed
    //#    call on IconManager com.dmdirc.ui.IconManager:getIconManager()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: IconManager com.dmdirc.ui.IconManager:getIconManager()
    //#UpdaterLabel.java:142: Warning: method not available - call not analyzed
    //#    call on Icon com.dmdirc.ui.IconManager:getIcon(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: Icon com.dmdirc.ui.IconManager:getIcon(String)
    //#UpdaterLabel.java:142: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setIcon(Icon)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setIcon(Icon)
                    getIcon("hourglass"));
        } else if (newStatus.equals(STATE.UPDATES_AVAILABLE)) {
    //#UpdaterLabel.java:144: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
            setToolTipText("Updates available");
    //#UpdaterLabel.java:145: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setToolTipText(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setToolTipText(String)
            setIcon(IconManager.getIconManager().getIcon("update"));
    //#UpdaterLabel.java:146: Warning: method not available - call not analyzed
    //#    call on IconManager com.dmdirc.ui.IconManager:getIconManager()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: IconManager com.dmdirc.ui.IconManager:getIconManager()
    //#UpdaterLabel.java:146: Warning: method not available - call not analyzed
    //#    call on Icon com.dmdirc.ui.IconManager:getIcon(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: Icon com.dmdirc.ui.IconManager:getIcon(String)
    //#UpdaterLabel.java:146: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setIcon(Icon)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setIcon(Icon)
        } else if (newStatus.equals(STATE.RESTART_REQUIRED)) {
    //#UpdaterLabel.java:147: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: bool com.dmdirc.updater.UpdateChecker$STATE:equals(Object)
            setToolTipText("Client restart required to finish updating");
    //#UpdaterLabel.java:148: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setToolTipText(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setToolTipText(String)
            setIcon(IconManager.getIconManager().getIcon("restart-needed"));
    //#UpdaterLabel.java:149: Warning: method not available - call not analyzed
    //#    call on IconManager com.dmdirc.ui.IconManager:getIconManager()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: IconManager com.dmdirc.ui.IconManager:getIconManager()
    //#UpdaterLabel.java:149: Warning: method not available - call not analyzed
    //#    call on Icon com.dmdirc.ui.IconManager:getIcon(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: Icon com.dmdirc.ui.IconManager:getIcon(String)
    //#UpdaterLabel.java:149: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setIcon(Icon)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
    //#    method: void statusChanged(UpdateChecker$STATE)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel:setIcon(Icon)
        }
    }
    //#UpdaterLabel.java:151: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.statusChanged(UpdateChecker$STATE)
}
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/UpdaterLabel]
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mouseClicked(Ljava/awt/event/MouseEvent;)V
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mouseEntered(Ljava/awt/event/MouseEvent;)V
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mouseExited(Ljava/awt/event/MouseEvent;)V
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mousePressed(Ljava/awt/event/MouseEvent;)V
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mouseReleased(Ljava/awt/event/MouseEvent;)V
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.statusChanged(Lcom/dmdirc/updater/UpdateChecker$STATE;)V
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/UpdaterLabel] == &__Dispatch_Table
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mouseClicked(Ljava/awt/event/MouseEvent;)V == &mouseClicked
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mouseEntered(Ljava/awt/event/MouseEvent;)V == &mouseEntered
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mouseExited(Ljava/awt/event/MouseEvent;)V == &mouseExited
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mousePressed(Ljava/awt/event/MouseEvent;)V == &mousePressed
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.mouseReleased(Ljava/awt/event/MouseEvent;)V == &mouseReleased
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init): __Dispatch_Table.statusChanged(Lcom/dmdirc/updater/UpdateChecker$STATE;)V == &statusChanged
    //#UpdaterLabel.java:: end of method: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel.com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel__static_init
    //#UpdaterLabel.java:: end of class: com.dmdirc.addons.ui_swing.components.statusbar.UpdaterLabel
