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.
If you select a breakpoint row in a column other than the main "Name" column and in a row other than the selected row, sometimes NodeActionsProvider.getActions() is called once with Object param being the root object as opposed to the breakpoint on that row. The UI continues on and shows the new row as the selected row which is also inconsistent with getting a root menu action. It seems to be easier to reproduce if you put a bpt on getActions. Because this is intermittent it must be a race condition where the mapping of selected TTV row to debugger happens before the row switch has actually completed. Also becaus eit seems like a race the pre-conditions for reproducibility I mention should not be taken literally. There's also a related problem where if the mouse is clicked outside of any row, in the empty area below all rows, some definite object is delivered to getActions instead of ROOT.
Right, it's easily reproducible. During debugging I've found that the action gets a wrong node from the tree table view framework. Specifically org.openide.explorer.view.TreeView.createExtendedPopup() gets the selected nodes and asks for the actions on them. But the array of the selected nodes does not correspond to the node where the mouse is and which is painted as selected. Therefore I'm moving this to openide.
The unpredictability of bpt context menu is rather visible. Would like this to be addressed for SSX3.
fixed in trunk /cvs/openide/explorer/src/org/openide/explorer/view/TreeTableView.java,v <-- TreeTableView.java new revision: 1.12; previous revision: 1.11
Changing prioroty to p2 making it a candidate for backporting to release55_mars.
fixed in release55_mars branch Checking in TreeTableView.java; /cvs/openide/explorer/src/org/openide/explorer/view/TreeTableView.java,v <-- TreeTableView.java new revision: 1.2.4.1.2.1.18.1; previous revision: 1.2.4.1.2.1
fixed in release551 branch Checking in TreeTableView.java; /cvs/openide/explorer/src/org/openide/explorer/view/TreeTableView.java,v <-- TreeTableView.java new revision: 1.2.4.1.2.1.22.1; previous revision: 1.2.4.1.2.1 done