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 - ListView unable to show context menu of root node
Summary: ListView unable to show context menu of root node
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 23:37 UTC by Nathan Fiedler
Modified: 2010-04-01 21:02 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.