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.
Main menu item state is not changed to enabled when menu was shown first and action was initially disabled. In that state is for example 'Continue' action enabled in toolbar and disabled in main menu. It is not correct and moreover it affects UI automated tests. To reproduce: - create a java project from template - add some code and breakpoint to Main.java - start debugger and immediatelly open 'Run' main menu. You see continue action is enabled in toolbar but it never gets enabled in menu while mouse cursor is over 'Run'. If you move cursor somewhere else, it gets enabled. Build 20051221-0211, JDK1.5.0_06, WindowsXP.
Created attachment 28034 [details] Screen shot of wrong state
Looks as any debugger problem to me. Reassign back if associated to general actions framework. Thanks
The same action is used for the toolbar and for the menu. See debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/resources/mf-layer.xml. Therefore it must be a bug in the menu presenter, since the toolbar is updated correctly. We call setEnabled(true/false) on that action. It's a javax.swing.AbstractAction, not SystemAction, if that helps. Also, I have a feeling that this has worked before, so it might be some regression...
It's reproducible on recent NB5.1 builds. The state menu items are not updated on-the-fly and doesn't reflect changes of activated object until menu is re-generated. Milos, do you know it's designed behavior or bug? Thanks
No current nor future plans to solve this problem. Closed as WONTFIX.
Verified.