//# 0 errors, 70 messages
//#
/*
    //#TextPaneCopyAction.java:1:1: class: com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction
    //#TextPaneCopyAction.java:1:1: method: com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction.com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction__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.ui_swing.textpane;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

/**
 * Copy action.
 */
public class TextPaneCopyAction extends AbstractAction {

    /**
     * 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;
    /** TextPane instance. */
    private TextPane textpane;

    /**
     * Instantiates a new action.
     *
     * @param textpane Textpane
     */
    public TextPaneCopyAction(final TextPane textpane) {
    //#TextPaneCopyAction.java:47: method: void com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction.com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction(TextPane)
    //#input(void com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction(TextPane)): textpane
    //#input(void com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction(TextPane)): this
    //#output(void com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction(TextPane)): this.textpane
    //#post(void com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction(TextPane)): this.textpane == textpane
    //#post(void com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction(TextPane)): init'ed(this.textpane)
        this.textpane = textpane;
    }
    //#TextPaneCopyAction.java:49: end of method: void com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction.com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction(TextPane)

    /**
     * {@inheritDoc}.
     * @param e Action event
     */
    @Override
    public void actionPerformed(ActionEvent e) {
        textpane.copy();
    //#TextPaneCopyAction.java:57: method: void com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction.actionPerformed(ActionEvent)
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/Line.__Descendant_Table[com/dmdirc/addons/ui_swing/textpane/Line]
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/Line.__Descendant_Table[others]
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/Line.__Dispatch_Table.getText()Ljava/lang/String;
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/LinePosition.__Descendant_Table[com/dmdirc/addons/ui_swing/textpane/LinePosition]
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/LinePosition.__Descendant_Table[others]
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/LinePosition.__Dispatch_Table.getEndLine()I
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/LinePosition.__Dispatch_Table.getEndPos()I
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/LinePosition.__Dispatch_Table.getStartLine()I
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/LinePosition.__Dispatch_Table.getStartPos()I
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.__Descendant_Table[com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas]
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.__Descendant_Table[others]
    //#input(void actionPerformed(ActionEvent)): com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.__Dispatch_Table.getSelectedRange()Lcom/dmdirc/addons/ui_swing/textpane/LinePosition;
    //#input(void actionPerformed(ActionEvent)): this
    //#input(void actionPerformed(ActionEvent)): this.textpane
    //#input(void actionPerformed(ActionEvent)): this.textpane.canvas
    //#input(void actionPerformed(ActionEvent)): this.textpane.canvas.__Tag
    //#input(void actionPerformed(ActionEvent)): this.textpane.canvas.selection
    //#input(void actionPerformed(ActionEvent)): this.textpane.canvas.selection.__Tag
    //#input(void actionPerformed(ActionEvent)): this.textpane.canvas.selection.endLine
    //#input(void actionPerformed(ActionEvent)): this.textpane.canvas.selection.endPos
    //#input(void actionPerformed(ActionEvent)): this.textpane.canvas.selection.startLine
    //#input(void actionPerformed(ActionEvent)): this.textpane.canvas.selection.startPos
    //#input(void actionPerformed(ActionEvent)): this.textpane.document
    //#input(void actionPerformed(ActionEvent)): this.textpane.document.lines
    //#pre[2] (void actionPerformed(ActionEvent)): this.textpane != null
    //#pre[3] (void actionPerformed(ActionEvent)): this.textpane.canvas != null
    //#pre[4] (void actionPerformed(ActionEvent)): this.textpane.canvas.__Tag == com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas
    //#pre[5] (void actionPerformed(ActionEvent)): this.textpane.canvas.selection != null
    //#pre[6] (void actionPerformed(ActionEvent)): this.textpane.canvas.selection.__Tag == com/dmdirc/addons/ui_swing/textpane/LinePosition
    //#pre[7] (void actionPerformed(ActionEvent)): init'ed(this.textpane.canvas.selection.endLine)
    //#pre[8] (void actionPerformed(ActionEvent)): init'ed(this.textpane.canvas.selection.endPos)
    //#pre[9] (void actionPerformed(ActionEvent)): init'ed(this.textpane.canvas.selection.startLine)
    //#pre[10] (void actionPerformed(ActionEvent)): init'ed(this.textpane.canvas.selection.startPos)
    //#pre[11] (void actionPerformed(ActionEvent)): (soft) this.textpane.document != null
    //#pre[12] (void actionPerformed(ActionEvent)): (soft) this.textpane.document.lines != null
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:getLine
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:com.dmdirc.ui.messages.Styliser:stipControlCodes
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.lang.String:substring
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.lang.StringBuffer
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.lang.StringBuffer:append
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:getNumLines
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.lang.String:isEmpty
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.lang.String:length
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.lang.StringBuffer:toString
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.awt.Toolkit:getDefaultToolkit
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.awt.Toolkit:getSystemClipboard
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.awt.datatransfer.StringSelection
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.awt.datatransfer.Clipboard:setContents
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.util.List:get
    //#unanalyzed(void actionPerformed(ActionEvent)): Effects-of-calling:java.util.List:size
    }
    //#TextPaneCopyAction.java:58: end of method: void com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction.actionPerformed(ActionEvent)
}    //#output(com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/textpane/TextPaneCopyAction]
    //#output(com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction__static_init): __Dispatch_Table.actionPerformed(Ljava/awt/event/ActionEvent;)V
    //#post(com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/textpane/TextPaneCopyAction] == &__Dispatch_Table
    //#post(com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction__static_init): __Dispatch_Table.actionPerformed(Ljava/awt/event/ActionEvent;)V == &actionPerformed
    //#TextPaneCopyAction.java:: end of method: com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction.com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction__static_init
    //#TextPaneCopyAction.java:: end of class: com.dmdirc.addons.ui_swing.textpane.TextPaneCopyAction
