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.
Product Version: NetBeans IDE Dev (Build 200709140000) Java: 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03 System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb) --------------------------------------- "Inspect Hierarchy" should be disable if no class-declaration is selected. For example, in Welcome project Navigation->Inspect Hierarchy is enabled, but nothing occurs if you select this item from context menu.
It's impossible to do this without the signifncant risk of freezing UI for several seconds. For this reason now the "Inspect Hierarchy" (as well as "View Hierarchy") issues an error message "You should select a type to view its hierarchy" in the case user doesn't point to a class and invokes the item.
Verified in NetBeans IDE 6.0 RC2 (Build 200711201000)