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 205835
Collapse All | Expand All

(-)a/openide.text/src/org/openide/text/CloneableEditor.java (-3 / +3 lines)
Lines 157-163 Link Here
157
    public CloneableEditor(CloneableEditorSupport support, boolean associateLookup) {
157
    public CloneableEditor(CloneableEditorSupport support, boolean associateLookup) {
158
        super();
158
        super();
159
        this.support = support;
159
        this.support = support;
160
160
        setReference( (CloneableTopComponent.Ref)support.getLock() );
161
        updateName();
161
        updateName();
162
        _setCloseOperation();
162
        _setCloseOperation();
163
        setMinimumSize(new Dimension(10, 10));
163
        setMinimumSize(new Dimension(10, 10));
Lines 932-938 Link Here
932
                return false;
932
                return false;
933
            }
933
            }
934
        }
934
        }
935
935
        
936
        // close everything and do not ask
936
        // close everything and do not ask
937
        synchronized (CLOSE_LAST_LOCK) {
937
        synchronized (CLOSE_LAST_LOCK) {
938
            if (CLOSE_LAST_LOCK[0]) {
938
            if (CLOSE_LAST_LOCK[0]) {
Lines 941-947 Link Here
941
                support.notifyClosed();
941
                support.notifyClosed();
942
            }
942
            }
943
        }
943
        }
944
944
        
945
        if (support.getLastSelected() == this) {
945
        if (support.getLastSelected() == this) {
946
            support.setLastSelected(null);
946
            support.setLastSelected(null);
947
        }
947
        }
(-)a/openide.windows/src/org/openide/windows/CloneableOpenSupport.java (-1 / +1 lines)
Lines 198-204 Link Here
198
                }
198
                }
199
199
200
                CloneableTopComponent editor = createCloneableTopComponent();
200
                CloneableTopComponent editor = createCloneableTopComponent();
201
                editor.setReference(allEditors);
201
//                editor.setReference(allEditors);
202
                editor.open();
202
                editor.open();
203
203
204
                msg = messageOpened();
204
                msg = messageOpened();

Return to bug 205835