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

(-)openide.loaders/src/org/openide/awt/MenuBar.java (+13 lines)
Lines 577-582 Link Here
577
            if (Thread.holdsLock(getTreeLock())) {
577
            if (Thread.holdsLock(getTreeLock())) {
578
                return;
578
                return;
579
            }
579
            }
580
            if( "Aqua".equals(UIManager.getLookAndFeel().getID()) ) { //NOI18N
581
                //#211284 - don't initialize menu items when the component tree is being refreshed on main wnd (de)activation
582
                for( StackTraceElement ste : Thread.currentThread().getStackTrace() ) {
583
                    if( "com.apple.laf.AquaRootPaneUI".equals(ste.getClassName()) ) { //NOI18N
584
                        if( "windowDeactivated".equals(ste.getMethodName()) ) { //NOI18N
585
                            break;
586
                        }
587
                        if( "windowActivated".equals(ste.getMethodName()) ) { //NOI18N
588
                            break;
589
                        }
590
                    }
591
                }
592
            }
580
            doInitialize();
593
            doInitialize();
581
        }
594
        }
582
        
595
        

Return to bug 211284