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.

Bug 70731 - Main menu item not enabled when already shown
Summary: Main menu item not enabled when already shown
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2005-12-22 11:12 UTC by Jiri Skrivanek
Modified: 2008-12-22 11:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot of wrong state (30.24 KB, image/gif)
2005-12-22 11:14 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2005-12-22 11:12:04 UTC
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.
Comment 1 Jiri Skrivanek 2005-12-22 11:14:02 UTC
Created attachment 28034 [details]
Screen shot of wrong state
Comment 2 Jiri Rechtacek 2005-12-22 11:52:52 UTC
Looks as any debugger problem to me. Reassign back if associated to general
actions framework. Thanks
Comment 3 Martin Entlicher 2005-12-22 15:57:50 UTC
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...
Comment 4 Jiri Rechtacek 2006-01-18 15:27:25 UTC
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
Comment 5 Jiri Rechtacek 2007-09-13 10:20:14 UTC
No current nor future plans to solve this problem. Closed as WONTFIX.
Comment 6 Jiri Skrivanek 2008-08-26 16:35:26 UTC
Verified.