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 42417

Summary: Project-sensitive actions sometimes disabled
Product: projects Reporter: Jesse Glick <jglick>
Component: Generic InfrastructureAssignee: Petr Hrebejk <phrebejk>
Status: CLOSED WORKSFORME    
Severity: blocker Keywords: RANDOM, REGRESSION
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description Jesse Glick 2004-04-23 21:46:35 UTC
I just have a test class (FileOwnerQueryTest.java)
open in the editor and noticed that the entries
like Run Test and Run Test in Debugger in the Run
Other menu were disabled! The keyboard shortcuts
work fine.

Not sure how to reproduce but something is clearly
broken.
Comment 1 Petr Hrebejk 2004-05-03 14:23:43 UTC
I can't reproduce it.
Comment 2 Jesse Glick 2004-05-03 17:27:10 UTC
Happens to me all the time. Quite at random I just went to my running
dev build, selected Core - Windows root node in Projects tab, and went
to the Build menu. I see "Generate Javadoc for Project "My App"" and
"Compile File "Main.java"". These items remain after closing and
reposting the menu, selecting different nodes in the Projects tab, etc.

Note that the main window title is updated reliably, so it not just a
matter of the global selection not getting changed. I think the
problems are really in the actions.

BTW I have no toolbars visible, maybe this is related? But even after
enabling the Build toolbar and changing selection some more, it still
doesn't update the menus.

I have had the IDE running for a while, maybe it is GC-related - i.e.
missing strong ref with WeakListeners. After restarting the IDE it
seems to be working fine for now.
Comment 3 Jesse Glick 2004-06-15 13:15:06 UTC
Haven't seen such problems for a while. But still need unit tests.
Comment 4 Marian Mirilovic 2005-07-12 10:14:42 UTC
closed