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

(-)ui/AbstractOutputTab.java (-1 / +4 lines)
Lines 91-97 Link Here
91
        actions = new Action[a.length];
91
        actions = new Action[a.length];
92
        JButton[] jb = new JButton[a.length];
92
        JButton[] jb = new JButton[a.length];
93
        for (int i=0; i < jb.length; i++) {
93
        for (int i=0; i < jb.length; i++) {
94
            actions[i] = new WeakAction(a[i]);
94
            actions[i] = a[i];
95
            // mkleint - ignore the WeakAction referencing as it introduces
96
            // additional non obvious contract to using the the toolbar actions.
97
//            actions[i] = new WeakAction(a[i]);
95
            installKeyboardAction (a[i]);
98
            installKeyboardAction (a[i]);
96
            jb[i] = new JButton(actions[i]);
99
            jb[i] = new JButton(actions[i]);
97
            jb[i].setBorderPainted(false);
100
            jb[i].setBorderPainted(false);
(-)NbIOProvider.java (-2 / +8 lines)
Lines 57-67 Link Here
57
    
57
    
58
    
58
    
59
    public InputOutput getIO(String name, boolean newIO) {
59
    public InputOutput getIO(String name, boolean newIO) {
60
        return getIO (name, newIO, null);
60
        return getIO (name, newIO, new Action[0]);
61
    }
61
    }
62
    
62
    
63
    public InputOutput getIO(String name, Action[] toolbarActions) {
64
        return getIO (name, true, toolbarActions);
65
    }
63
    
66
    
64
    public InputOutput getIO(String name, boolean newIO, Action[] toolbarActions) {
67
    private InputOutput getIO(String name, boolean newIO, Action[] toolbarActions) {
65
        if (Controller.log) {
68
        if (Controller.log) {
66
            Controller.log("GETIO: " + name + " new:" + newIO);
69
            Controller.log("GETIO: " + name + " new:" + newIO);
67
        }
70
        }
Lines 71-76 Link Here
71
            result = new NbIO(name, toolbarActions);
74
            result = new NbIO(name, toolbarActions);
72
            namesToIos.add (name, result);
75
            namesToIos.add (name, result);
73
            Controller.ensureViewInDefault (result, newIO);
76
            Controller.ensureViewInDefault (result, newIO);
77
        } else {
78
            // mkleint ignore actions if reuse of tabs.
79
//            result.setToolbarActions(toolbarActions);
74
        }
80
        }
75
        return result;
81
        return result;
76
    }
82
    }
(-)NbIO.java (-1 / +2 lines)
Lines 19-24 Link Here
19
package org.netbeans.core.output2;
19
package org.netbeans.core.output2;
20
20
21
import org.openide.ErrorManager;
21
import org.openide.ErrorManager;
22
import org.openide.windows.InputOutput;
22
import org.openide.windows.OutputWriter;
23
import org.openide.windows.OutputWriter;
23
24
24
import javax.swing.*;
25
import javax.swing.*;
Lines 34-40 Link Here
34
 *
35
 *
35
 * @author  Tim Boudreau
36
 * @author  Tim Boudreau
36
 */
37
 */
37
class NbIO implements CallbackInputOutput {
38
class NbIO implements InputOutput {
38
39
39
    private Boolean focusTaken = null;
40
    private Boolean focusTaken = null;
40
    private Boolean closed = null;
41
    private Boolean closed = null;

Return to bug 43332