When you have a bunch of rows selected and you right
click on one of them, it should trigger the popup menu
without changing the selection state. Currently, it
selects just that row before the menu appears. This
happens because clickInSelectedCells doesn't check
whether isRowSelectMode() is true. Here's a fix:
protected boolean clickInSelectedCells(Point click) {
Point clickedCell =
getCellForCoordinates(click.x, click.y);
if (isRowSelectMode()) {
return m_Selection.get(clickedCell.y) != null;
}
return m_Selection.get(clickedCell) != null;
}