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.
import javax.swing.Action;
/**
* Get a named instance of InputOutput, which represents an output tab in
* the output window. Streams for reading/writing can be accessed via
* getters on the returned instance.
* Additional actoins are displayed on the output's toolbar.
*
* @param name A localized display name for the tab
* @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
* @param additionalActions array of actions that are added to the toolbar
* @return an <code>InputOutput</code> instance for accessing the new tab
* @see InputOutput
* @since 1.6 <br>
* Note: The method is non-abstract for backward compatibility reasons only. If you are
* extending IOProvider and implementing it's abstract classes, you are encouraged to override
* this method as well. The default implementation fallbacks to the getIO(name, newIO) method, ignoring the actions passed.
*/
public InputOutput getIO(String name, boolean newIO, Action[] additionalActions) {
return getIO(name, newIO);
}
<change id="allow-to-add-actions-to-toolbar">
<api name="io"/>
<summary> Added API to add actions to output's toolbar</summary>
<version major="1" minor="6"/>
<date day="22" month="12" year="2004"/>
<author login="mkleint"/>
<compatibility addition="yes" binary="compatible" semantic="compatible" />
<description>
<p>Added an additional method <code>InputOutput getIO(String name, boolean newIO, Action[] additionalActions)</code>
that accepts additional array of javax.swing.Action instances. It allows to define domain-specific additional actions
that can be performed on the content of the output.</p>
<p>The method
should be ideally abstract but because it's uncertain how many
implementations are there, the method is non-abstract and in it's
default impl, delegates to the <code>InputOutput getIO(String name, boolean newIO)</code> method,
ignoring the boolean parameter. Implementors of the class are
encourages to implement the new method.
</p>
</description>
<class package="org.openide.windows" name="IOProvider"/>
<issue number="43332" />
</change>