This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 43332
Collapse All | Expand All

(-)IOProvider.java (+22 lines)
Line 22 Link Here
22
import javax.swing.Action;
Line 65 Link Here
66
    
67
    /** 
68
     * Get a named instance of InputOutput, which represents an output tab in
69
     * the output window.  Streams for reading/writing can be accessed via
70
     * getters on the returned instance. 
71
     * Additional actoins are displayed on the output's toolbar.
72
     *
73
     * @param name A localized display name for the tab
74
     * @param newIO if <tt>true</tt>, a new <code>InputOutput</code> is returned, else an existing <code>InputOutput</code> of the same name may be returned
75
     * @param additionalActions array of actions that are added to the toolbar
76
     * @return an <code>InputOutput</code> instance for accessing the new tab
77
     * @see InputOutput
78
     * @since 1.6 <br>
79
     * Note: The method is non-abstract for backward compatibility reasons only. If you are
80
     * extending IOProvider and implementing it's abstract classes, you are encouraged to override
81
     * this method as well. The default implementation fallbacks to the getIO(name, newIO) method, ignoring the actions passed.
82
     */
83
    public InputOutput getIO(String name, boolean newIO, Action[] additionalActions) {
84
        return getIO(name, newIO);
85
    }
86
    
(-)changes.xml (+23 lines)
Line 78 Link Here
78
    <change id="allow-to-add-actions-to-toolbar">
79
      <api name="io"/>
80
      <summary> Added API to add actions to output's toolbar</summary>
81
      <version major="1" minor="6"/>
82
      <date day="22" month="12" year="2004"/>
83
      <author login="mkleint"/>
84
      <compatibility addition="yes" binary="compatible" semantic="compatible" />
85
      <description>
86
        <p>Added an additional method <code>InputOutput getIO(String name, boolean newIO, Action[] additionalActions)</code>
87
         that accepts additional array of javax.swing.Action instances. It allows to define domain-specific additional actions
88
         that can be performed on the content of the output.</p>
89
         <p>The method
90
should be ideally abstract but because it's uncertain how many
91
implementations are there, the method is non-abstract and in it's
92
default impl, delegates to the <code>InputOutput getIO(String name, boolean newIO)</code> method,
93
ignoring the boolean parameter. Implementors of the class are
94
encourages to implement the new method.
95
        </p>
96
      </description>
97
      <class package="org.openide.windows" name="IOProvider"/>
98
      <issue number="43332" />
99
    </change>
100

Return to bug 43332