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.
Summary: | [TTV] Popup item for collumns selection at last but one position | ||
---|---|---|---|
Product: | platform | Reporter: | David Strupl <dstrupl> |
Component: | Outline&TreeTable | Assignee: | David Strupl <dstrupl> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jrechtacek, jtulach, tboudreau |
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | proposed patch against trunk 2004/02/17 |
Description
David Strupl
2003-11-08 17:02:21 UTC
Sorry - not Tim but probably Jirka ... The method TTV.getListMenu(final int col) constructs a JMenu (with the column chooser) which is placed by TreeView.createExtendedPopup() in popup menu. The responsible with item placement is TreeView.createExtendedPopup, a matter of switch on/off is same as issue 37100. Your patch is welcome, at least as hint how to procced a fix. I am sorry I did not supply the fix yet. I propose either 1. to put the menu item at the last position or 2. not to put it there at all (and provide some action that can be put to the node's popup if the node author wishes to have it there) Please tell me what you think about the solution. The 2. is (much) more complicated but sounds like a cleaner solution to me. It is complicated because the code inside the action would have to somehow get the reference to the (tree)view which is not obvious how to get it there. Created attachment 13472 [details]
proposed patch against trunk 2004/02/17
If there are no objections I would apply the patch ASAP. Thanks for a review. Fine by me. Ok - it is in the trunk now: Checking in TreeView.java; /cvs/openide/src/org/openide/explorer/view/TreeView.java,v <-- TreeView.java new revision: 1.154; previous revision: 1.153 done closed |