//# 0 errors, 43 messages
//#
/*
    //#BashStylePlugin.java:1:1: class: com.dmdirc.addons.tabcompletion_bash.BashStylePlugin
    //#BashStylePlugin.java:1:1: method: com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__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.tabcompletion_bash;

import com.dmdirc.plugins.Plugin;
import com.dmdirc.ui.input.TabCompleter;
import com.dmdirc.ui.input.tabstyles.TabCompletionStyle;
import com.dmdirc.ui.interfaces.InputWindow;

public class BashStylePlugin extends Plugin {
    //#BashStylePlugin.java:30: method: void com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.com.dmdirc.addons.tabcompletion_bash.BashStylePlugin()
    //#BashStylePlugin.java:30: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.plugins.Plugin()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.tabcompletion_bash.BashStylePlugin
    //#    method: void com.dmdirc.addons.tabcompletion_bash.BashStylePlugin()
    //#    unanalyzed callee: void com.dmdirc.plugins.Plugin()
    //#input(void com.dmdirc.addons.tabcompletion_bash.BashStylePlugin()): this
    //#BashStylePlugin.java:30: end of method: void com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.com.dmdirc.addons.tabcompletion_bash.BashStylePlugin()
    
    /** {@inheritDoc} */
    @Override
    public void onLoad() {
        // Do nothing
    }
    //#BashStylePlugin.java:36: method: void com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.onLoad()
    //#BashStylePlugin.java:36: end of method: void com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.onLoad()

    /** {@inheritDoc} */
    @Override
    public void onUnload() {
        // Do nothing
    }
    //#BashStylePlugin.java:42: method: void com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.onUnload()
    //#BashStylePlugin.java:42: end of method: void com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.onUnload()

    /**
     * Retrieves a new instance of the Bash tab completion style.
     * 
     * @param completer The tab completer the instance is for
     * @param window The window the instance is for
     * @return A relevant TabCompletionStyle
     */
    public TabCompletionStyle getCompletionStyle(final TabCompleter completer,
            final InputWindow window) {
        return new BashStyle(completer, window);
    //#BashStylePlugin.java:53: method: TabCompletionStyle com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.getCompletionStyle(TabCompleter, InputWindow)
    //#input(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): completer
    //#input(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): window
    //#output(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): new BashStyle(getCompletionStyle#1) num objects
    //#output(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.__Tag
    //#output(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.lastPosition
    //#output(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.lastWord
    //#output(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.tabCompleter
    //#output(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.tabCount
    //#output(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.window
    //#output(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value
    //#new obj(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): new BashStyle(getCompletionStyle#1)
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value == &new BashStyle(getCompletionStyle#1)
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): new BashStyle(getCompletionStyle#1) num objects == 1
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.__Tag == com/dmdirc/addons/tabcompletion_bash/BashStyle
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.lastPosition == -1
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.lastWord == &""
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.tabCompleter == completer
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): init'ed(return_value.tabCompleter)
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.tabCount == 0
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): return_value.window == window
    //#post(TabCompletionStyle getCompletionStyle(TabCompleter, InputWindow)): init'ed(return_value.window)
    //#BashStylePlugin.java:53: end of method: TabCompletionStyle com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.getCompletionStyle(TabCompleter, InputWindow)
    }
    
}    //#output(com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__static_init): __Descendant_Table[com/dmdirc/addons/tabcompletion_bash/BashStylePlugin]
    //#output(com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__static_init): __Dispatch_Table.getCompletionStyle(Lcom/dmdirc/ui/input/TabCompleter;Lcom/dmdirc/ui/interfaces/InputWindow;)Lcom/dmdirc/ui/input/tabstyles/TabCompletionStyle;
    //#output(com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__static_init): __Dispatch_Table.onLoad()V
    //#output(com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__static_init): __Dispatch_Table.onUnload()V
    //#post(com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__static_init): __Descendant_Table[com/dmdirc/addons/tabcompletion_bash/BashStylePlugin] == &__Dispatch_Table
    //#post(com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__static_init): __Dispatch_Table.getCompletionStyle(Lcom/dmdirc/ui/input/TabCompleter;Lcom/dmdirc/ui/interfaces/InputWindow;)Lcom/dmdirc/ui/input/tabstyles/TabCompletionStyle; == &getCompletionStyle
    //#post(com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__static_init): __Dispatch_Table.onLoad()V == &onLoad
    //#post(com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__static_init): __Dispatch_Table.onUnload()V == &onUnload
    //#BashStylePlugin.java:: end of method: com.dmdirc.addons.tabcompletion_bash.BashStylePlugin.com.dmdirc.addons.tabcompletion_bash.BashStylePlugin__static_init
    //#BashStylePlugin.java:: end of class: com.dmdirc.addons.tabcompletion_bash.BashStylePlugin
