//# 0 errors, 191 messages
//#
/*
    //#OsdCommand.java:1:1: class: com.dmdirc.addons.osd.OsdCommand
    //#OsdCommand.java:1:1: method: com.dmdirc.addons.osd.OsdCommand.com.dmdirc.addons.osd.OsdCommand__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.addons.osd;

import com.dmdirc.commandparser.CommandArguments;
import com.dmdirc.commandparser.CommandManager;
import com.dmdirc.commandparser.commands.GlobalCommand;
import com.dmdirc.commandparser.commands.IntelligentCommand;
import com.dmdirc.ui.input.AdditionalTabTargets;
import com.dmdirc.ui.interfaces.InputWindow;
import com.dmdirc.ui.messages.Styliser;

import java.util.List;

/**
 * The osd command shows an on screen message.
 * @author chris
 */
public final class OsdCommand extends GlobalCommand implements IntelligentCommand {

    /** The plugin that owns this command. */
    private final OsdPlugin plugin;
    
    /**
     * Creates a new instance of OsdCommand.
     *
     * @param plugin The plugin that owns this command
     */
    public OsdCommand(final OsdPlugin plugin) {
        super();
    //#OsdCommand.java:50: method: void com.dmdirc.addons.osd.OsdCommand.com.dmdirc.addons.osd.OsdCommand(OsdPlugin)
    //#OsdCommand.java:50: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.commandparser.commands.GlobalCommand()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.osd.OsdCommand
    //#    method: void com.dmdirc.addons.osd.OsdCommand(OsdPlugin)
    //#    unanalyzed callee: void com.dmdirc.commandparser.commands.GlobalCommand()
    //#input(void com.dmdirc.addons.osd.OsdCommand(OsdPlugin)): plugin
    //#input(void com.dmdirc.addons.osd.OsdCommand(OsdPlugin)): this
    //#output(void com.dmdirc.addons.osd.OsdCommand(OsdPlugin)): this.plugin
    //#post(void com.dmdirc.addons.osd.OsdCommand(OsdPlugin)): this.plugin == plugin
    //#post(void com.dmdirc.addons.osd.OsdCommand(OsdPlugin)): init'ed(this.plugin)

        this.plugin = plugin;
        
        CommandManager.registerCommand(this);
    //#OsdCommand.java:54: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.commandparser.CommandManager:registerCommand(Command)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.osd.OsdCommand
    //#    method: void com.dmdirc.addons.osd.OsdCommand(OsdPlugin)
    //#    unanalyzed callee: void com.dmdirc.commandparser.CommandManager:registerCommand(Command)
    }
    //#OsdCommand.java:55: end of method: void com.dmdirc.addons.osd.OsdCommand.com.dmdirc.addons.osd.OsdCommand(OsdPlugin)
    

    /**
     * Used to show a notification using this plugin.
     *
     * @param title Title of dialog if applicable
     * @param message Message to show
     * @return True if the notification was shown.
     */
    public boolean showOSD(final String title, final String message) {
        new OsdWindow(Styliser.stipControlCodes(message), false, plugin);
    //#OsdCommand.java:66: method: bool com.dmdirc.addons.osd.OsdCommand.showOSD(String, String)
    //#OsdCommand.java:66: Warning: method not available - call not analyzed
    //#    call on String com.dmdirc.ui.messages.Styliser:stipControlCodes(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.osd.OsdCommand
    //#    method: bool showOSD(String, String)
    //#    unanalyzed callee: String com.dmdirc.ui.messages.Styliser:stipControlCodes(String)
    //#input(bool showOSD(String, String)): com/dmdirc/addons/osd/OsdWindow.__Descendant_Table[com/dmdirc/addons/osd/OsdWindow]
    //#input(bool showOSD(String, String)): com/dmdirc/addons/osd/OsdWindow.__Descendant_Table[others]
    //#input(bool showOSD(String, String)): com/dmdirc/addons/osd/OsdWindow.java.awt.Color.BLACK
    //#input(bool showOSD(String, String)): com/dmdirc/addons/osd/OsdWindow.windows
    //#input(bool showOSD(String, String)): com/dmdirc/addons/ui_swing/MainFrame.__Descendant_Table[com/dmdirc/addons/ui_swing/MainFrame]
    //#input(bool showOSD(String, String)): com/dmdirc/addons/ui_swing/MainFrame.__Descendant_Table[others]
    //#input(bool showOSD(String, String)): message
    //#input(bool showOSD(String, String)): this
    //#input(bool showOSD(String, String)): this.plugin
    //#output(bool showOSD(String, String)): return_value
    //#pre[4] (bool showOSD(String, String)): this.plugin != null
    //#pre[1] (bool showOSD(String, String)): (soft) com/dmdirc/addons/osd/OsdWindow.windows != null
    //#post(bool showOSD(String, String)): return_value == 1
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JDialog:setVisible
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.util.List:add
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:transferFocusBackward
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JDialog:dispose
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.util.List:remove
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.util.ArrayList:iterator
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.config.IdentityManager:getGlobalConfig
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdPlugin:getDomain
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.config.ConfigManager:getOption
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.config.ConfigManager:getOptionInt
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:isVisible
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:getY
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:getHeight
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.lang.Math:max
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.lang.Math:min
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.Main:getUI
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.ui.interfaces.UIController:getMainWindow
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JDialog
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setFocusableWindowState
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setAlwaysOnTop
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setResizable
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setUndecorated
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setDefaultCloseOperation
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setLocation
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JPanel
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.border.LineBorder
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JPanel:setBorder
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.config.ConfigManager:getOptionColour
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JPanel:setBackground
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setContentPane
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:net.miginfocom.swing.MigLayout
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setLayout
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JLabel
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JLabel:setForeground
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JLabel:getFont
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.awt.Font:deriveFont
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JLabel:setFont
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:javax.swing.JLabel:setHorizontalAlignment
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:add
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:pack
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:addMouseMotionListener
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:addMouseListener
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.util.Timer
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.util.TimerTask
    //#unanalyzed(bool showOSD(String, String)): Effects-of-calling:java.util.Timer:schedule
        return true;
    //#OsdCommand.java:67: end of method: bool com.dmdirc.addons.osd.OsdCommand.showOSD(String, String)
    }

    /** {@inheritDoc} */
    @Override
    public void execute(final InputWindow origin, final boolean isSilent,
            final CommandArguments args) {
        if (args.getArguments().length > 0
    //#OsdCommand.java:74: method: void com.dmdirc.addons.osd.OsdCommand.execute(InputWindow, bool, CommandArguments)
    //#OsdCommand.java:74: Warning: method not available - call not analyzed
    //#    call on String[] com.dmdirc.commandparser.CommandArguments:getArguments()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.osd.OsdCommand
    //#    method: void execute(InputWindow, bool, CommandArguments)
    //#    unanalyzed callee: String[] com.dmdirc.commandparser.CommandArguments:getArguments()
    //#input(void execute(InputWindow, bool, CommandArguments)): args
    //#input(void execute(InputWindow, bool, CommandArguments)): com/dmdirc/addons/osd/OsdWindow.__Descendant_Table[com/dmdirc/addons/osd/OsdWindow]
    //#input(void execute(InputWindow, bool, CommandArguments)): com/dmdirc/addons/osd/OsdWindow.__Descendant_Table[others]
    //#input(void execute(InputWindow, bool, CommandArguments)): com/dmdirc/addons/osd/OsdWindow.java.awt.Color.BLACK
    //#input(void execute(InputWindow, bool, CommandArguments)): com/dmdirc/addons/osd/OsdWindow.windows
    //#input(void execute(InputWindow, bool, CommandArguments)): com/dmdirc/addons/ui_swing/MainFrame.__Descendant_Table[com/dmdirc/addons/ui_swing/MainFrame]
    //#input(void execute(InputWindow, bool, CommandArguments)): com/dmdirc/addons/ui_swing/MainFrame.__Descendant_Table[others]
    //#input(void execute(InputWindow, bool, CommandArguments)): this
    //#input(void execute(InputWindow, bool, CommandArguments)): this.plugin
    //#pre[1] (void execute(InputWindow, bool, CommandArguments)): args != null
    //#pre[2] (void execute(InputWindow, bool, CommandArguments)): (soft) com/dmdirc/addons/osd/OsdWindow.windows != null
    //#pre[4] (void execute(InputWindow, bool, CommandArguments)): (soft) this.plugin != null
    //#presumption(void execute(InputWindow, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...).length@74 >= 1
    //#presumption(void execute(InputWindow, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)@74 != null
    //#presumption(void execute(InputWindow, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)@74 != null
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.ui.messages.Styliser:stipControlCodes
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JDialog:setVisible
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.util.List:add
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:transferFocusBackward
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JDialog:dispose
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.util.List:remove
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.util.ArrayList:iterator
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.config.IdentityManager:getGlobalConfig
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdPlugin:getDomain
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.config.ConfigManager:getOption
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.config.ConfigManager:getOptionInt
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:isVisible
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:getY
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:getHeight
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.lang.Math:max
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.lang.Math:min
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.Main:getUI
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.ui.interfaces.UIController:getMainWindow
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JDialog
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setFocusableWindowState
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setAlwaysOnTop
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setResizable
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setUndecorated
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setDefaultCloseOperation
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setLocation
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JPanel
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.border.LineBorder
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JPanel:setBorder
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.config.ConfigManager:getOptionColour
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JPanel:setBackground
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setContentPane
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:net.miginfocom.swing.MigLayout
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:setLayout
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JLabel
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JLabel:setForeground
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JLabel:getFont
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.awt.Font:deriveFont
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JLabel:setFont
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:javax.swing.JLabel:setHorizontalAlignment
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:add
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:pack
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:addMouseMotionListener
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.osd.OsdWindow:addMouseListener
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.util.Timer
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.util.TimerTask
    //#unanalyzed(void execute(InputWindow, bool, CommandArguments)): Effects-of-calling:java.util.Timer:schedule
    //#test_vector(void execute(InputWindow, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...).length@74: {0}, {1..+Inf}
    //#test_vector(void execute(InputWindow, bool, CommandArguments)): java.lang.String:equalsIgnoreCase(...)@74: {0}, {1}
                && "--close".equalsIgnoreCase(args.getArguments()[0])) {
            OsdWindow.closeAll();
        } else {
            showOSD("", args.getArgumentsAsString());
    //#OsdCommand.java:78: Warning: method not available - call not analyzed
    //#    call on String com.dmdirc.commandparser.CommandArguments:getArgumentsAsString()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.osd.OsdCommand
    //#    method: void execute(InputWindow, bool, CommandArguments)
    //#    unanalyzed callee: String com.dmdirc.commandparser.CommandArguments:getArgumentsAsString()
        }
    }
    //#OsdCommand.java:80: end of method: void com.dmdirc.addons.osd.OsdCommand.execute(InputWindow, bool, CommandArguments)
    
    /** {@inheritDoc}. */
    @Override
    public String getName() {
        return "osd";
    //#OsdCommand.java:85: method: String com.dmdirc.addons.osd.OsdCommand.getName()
    //#output(String getName()): return_value
    //#post(String getName()): return_value == &"osd"
    //#OsdCommand.java:85: end of method: String com.dmdirc.addons.osd.OsdCommand.getName()
    }
    
    /** {@inheritDoc}. */
    @Override
    public boolean showInHelp() {
        return true;
    //#OsdCommand.java:91: method: bool com.dmdirc.addons.osd.OsdCommand.showInHelp()
    //#output(bool showInHelp()): return_value
    //#post(bool showInHelp()): return_value == 1
    //#OsdCommand.java:91: end of method: bool com.dmdirc.addons.osd.OsdCommand.showInHelp()
    }
    
    /** {@inheritDoc}. */
    @Override
    public String getHelp() {
        return "osd --close - closes all OSD windows\n" +
    //#OsdCommand.java:97: method: String com.dmdirc.addons.osd.OsdCommand.getHelp()
    //#output(String getHelp()): return_value
    //#post(String getHelp()): return_value == &"osd --close - closes all OSD windows&#10;osd <message> - show the specified message in an OSD window"
    //#OsdCommand.java:97: end of method: String com.dmdirc.addons.osd.OsdCommand.getHelp()
                "osd <message> - show the specified message in an OSD window";
    }

    /** {@inheritDoc} */
    @Override
    public AdditionalTabTargets getSuggestions(final int arg, final List<String> previousArgs) {
        final AdditionalTabTargets res = new AdditionalTabTargets();
    //#OsdCommand.java:104: method: AdditionalTabTargets com.dmdirc.addons.osd.OsdCommand.getSuggestions(int, List)
    //#OsdCommand.java:104: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.ui.input.AdditionalTabTargets()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.osd.OsdCommand
    //#    method: AdditionalTabTargets getSuggestions(int, List)
    //#    unanalyzed callee: void com.dmdirc.ui.input.AdditionalTabTargets()
    //#input(AdditionalTabTargets getSuggestions(int, List)): arg
    //#input(AdditionalTabTargets getSuggestions(int, List)): previousArgs
    //#output(AdditionalTabTargets getSuggestions(int, List)): new AdditionalTabTargets(getSuggestions#1) num objects
    //#output(AdditionalTabTargets getSuggestions(int, List)): return_value
    //#new obj(AdditionalTabTargets getSuggestions(int, List)): new AdditionalTabTargets(getSuggestions#1)
    //#pre[2] (AdditionalTabTargets getSuggestions(int, List)): (soft) previousArgs != null
    //#presumption(AdditionalTabTargets getSuggestions(int, List)): java.util.List:get(...)@108 != null
    //#post(AdditionalTabTargets getSuggestions(int, List)): return_value == &new AdditionalTabTargets(getSuggestions#1)
    //#post(AdditionalTabTargets getSuggestions(int, List)): new AdditionalTabTargets(getSuggestions#1) num objects == 1
    //#test_vector(AdditionalTabTargets getSuggestions(int, List)): arg: {-2_147_483_648..-1}, {0}, {1..4_294_967_295}
    //#test_vector(AdditionalTabTargets getSuggestions(int, List)): java.lang.String:equals(...)@108: {0}, {1}
        
        if (arg == 0) {
            res.add("--close");
    //#OsdCommand.java:107: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.ui.input.AdditionalTabTargets:add(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.osd.OsdCommand
    //#    method: AdditionalTabTargets getSuggestions(int, List)
    //#    unanalyzed callee: bool com.dmdirc.ui.input.AdditionalTabTargets:add(Object)
        } else if (arg > 0 && previousArgs.get(0).equals("--close")) {
            res.excludeAll();
    //#OsdCommand.java:109: Warning: method not available - call not analyzed
    //#    call on AdditionalTabTargets com.dmdirc.ui.input.AdditionalTabTargets:excludeAll()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.osd.OsdCommand
    //#    method: AdditionalTabTargets getSuggestions(int, List)
    //#    unanalyzed callee: AdditionalTabTargets com.dmdirc.ui.input.AdditionalTabTargets:excludeAll()
        }
        
        return res;
    //#OsdCommand.java:112: end of method: AdditionalTabTargets com.dmdirc.addons.osd.OsdCommand.getSuggestions(int, List)
    } 
    
}
    //#output(com.dmdirc.addons.osd.OsdCommand__static_init): __Descendant_Table[com/dmdirc/addons/osd/OsdCommand]
    //#output(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.execute(Lcom/dmdirc/ui/interfaces/InputWindow;ZLcom/dmdirc/commandparser/CommandArguments;)V
    //#output(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.getHelp()Ljava/lang/String;
    //#output(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.getName()Ljava/lang/String;
    //#output(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.getSuggestions(ILjava/util/List;)Lcom/dmdirc/ui/input/AdditionalTabTargets;
    //#output(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.showInHelp()Z
    //#output(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.showOSD(Ljava/lang/String;Ljava/lang/String;)Z
    //#post(com.dmdirc.addons.osd.OsdCommand__static_init): __Descendant_Table[com/dmdirc/addons/osd/OsdCommand] == &__Dispatch_Table
    //#post(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.execute(Lcom/dmdirc/ui/interfaces/InputWindow;ZLcom/dmdirc/commandparser/CommandArguments;)V == &execute
    //#post(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.getHelp()Ljava/lang/String; == &getHelp
    //#post(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.getName()Ljava/lang/String; == &getName
    //#post(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.getSuggestions(ILjava/util/List;)Lcom/dmdirc/ui/input/AdditionalTabTargets; == &getSuggestions
    //#post(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.showInHelp()Z == &showInHelp
    //#post(com.dmdirc.addons.osd.OsdCommand__static_init): __Dispatch_Table.showOSD(Ljava/lang/String;Ljava/lang/String;)Z == &showOSD
    //#OsdCommand.java:: end of method: com.dmdirc.addons.osd.OsdCommand.com.dmdirc.addons.osd.OsdCommand__static_init
    //#OsdCommand.java:: end of class: com.dmdirc.addons.osd.OsdCommand
