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 115565

Summary: "Inspect Hierarchy" should be disable if no class-declaration is selected
Product: cnd Reporter: dnikitin <dnikitin>
Component: -- Other --Assignee: issues@cnd <issues>
Status: VERIFIED WONTFIX    
Severity: blocker CC: vkvashin
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description dnikitin 2007-09-14 15:05:56 UTC
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.
Comment 1 Vladimir Kvashin 2007-09-14 15:17:45 UTC
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.
Comment 2 dnikitin 2007-11-23 17:17:08 UTC
Verified in NetBeans IDE 6.0 RC2 (Build 200711201000)