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 78199

Summary: ListView unable to show context menu of root node
Product: platform Reporter: Nathan Fiedler <nlfiedler>
Component: ExplorerAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Nathan Fiedler 2006-06-16 23:37:24 UTC
The TreeView has an important feature in which right-clicking in the space
around the tree nodes causes the context menu of the hidden root node to appear.
We utilize this feature in the EntPack and rely on it.

Unfortunately, the ListView lacks this feature. Basically two things need to happen:

1. ListView.PopupSupport.showPopup(MouseEvent) needs to not change the selected
index if the mouse location is outside of the bounds of any list item (i.e. if
contextMenu were true).

2. ListView.createPopup() should set the hidden root node as the selected node
if the contextMenu parameter is true (in order for the context menu actions to
have the appropriate context).
Comment 1 Antonin Nebuzelsky 2008-02-07 16:14:05 UTC
Reassigning to new module owner Tomas Holy.
Comment 2 Jaroslav Tulach 2010-04-01 21:02:15 UTC
Provide patch, if you want this.