Lines 19-24
Link Here
|
19 |
import java.io.PrintStream; |
19 |
import java.io.PrintStream; |
20 |
import java.io.Reader; |
20 |
import java.io.Reader; |
21 |
import java.io.StringWriter; |
21 |
import java.io.StringWriter; |
|
|
22 |
import javax.swing.Action; |
22 |
import org.openide.util.Lookup; |
23 |
import org.openide.util.Lookup; |
23 |
|
24 |
|
24 |
/** A factory for IO tabs shown in the output window. To create a new tab to |
25 |
/** A factory for IO tabs shown in the output window. To create a new tab to |
Lines 62-67
Link Here
|
62 |
*/ |
63 |
*/ |
63 |
public abstract InputOutput getIO(String name, boolean newIO); |
64 |
public abstract InputOutput getIO(String name, boolean newIO); |
64 |
|
65 |
|
|
|
66 |
|
67 |
/** |
68 |
*Gets a named instance of InputOutput with additional actions displayed in the |
69 |
* toolbar. |
70 |
* Streams for reading/writing can be accessed via |
71 |
* getters on the returned instance. |
72 |
* Additional actions are displayed on the output's toolbar. |
73 |
* |
74 |
* @param name A localized display name for the tab |
75 |
* @param additionalActions array of actions that are added to the toolbar, Can be empty array, but not null. |
76 |
* The number of actions should not exceed 5 and each should have the <code>Action.SMALL_ICON</code> property defined. |
77 |
* @return an <code>InputOutput</code> instance for accessing the new tab |
78 |
* @see InputOutput |
79 |
* @since 1.6 <br> |
80 |
* Note: The method is non-abstract for backward compatibility reasons only. If you are |
81 |
* extending IOProvider and implementing its abstract classes, you are encouraged to override |
82 |
* this method as well. The default implementation falls back to the <code>getIO(name, newIO)</code> method, ignoring the actions passed. |
83 |
*/ |
84 |
public InputOutput getIO(String name, Action[] additionalActions) { |
85 |
return getIO(name, true); |
86 |
} |
87 |
|
65 |
/** Support writing to the Output Window on the main tab or a similar output device. |
88 |
/** Support writing to the Output Window on the main tab or a similar output device. |
66 |
* @return a writer for the standard NetBeans output area |
89 |
* @return a writer for the standard NetBeans output area |
67 |
*/ |
90 |
*/ |