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

(-)core/navigator/src/org/netbeans/modules/navigator/NavigatorController.java (-2 / +14 lines)
Lines 524-535 Link Here
524
    
524
    
525
    public void nodeDestroyed(NodeEvent ev) {
525
    public void nodeDestroyed(NodeEvent ev) {
526
        if (EventQueue.isDispatchThread()) {
526
        if (EventQueue.isDispatchThread()) {
527
            run();
527
            forceUpdate();
528
        } else {
528
        } else {
529
            EventQueue.invokeLater(this);
529
            EventQueue.invokeLater(new Runnable() {
530
                public void run() {
531
                    forceUpdate();
530
        }
532
        }
533
            });
531
    }
534
    }
535
    }
532
    
536
    
537
    /** Forces navigator content update.
538
     * Does nothing in case navigator TC is active */
539
    private void forceUpdate () {
540
        if (!navigatorTC.equals(WindowManager.getDefault().getRegistry().getActivated())) {
541
            updateContext(true);
542
        }
543
    }
544
    
533
    public void childrenAdded(NodeMemberEvent ev) {
545
    public void childrenAdded(NodeMemberEvent ev) {
534
        // no operation
546
        // no operation
535
    }
547
    }

Return to bug 121944