mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-47714 - AIOOBE: DefaultRowSorter.convertRowIndexToView
This commit is contained in:
+7
-4
@@ -259,10 +259,13 @@ public class StatisticsPanel implements DataProvider {
|
||||
protected void selectRowOf(final SMTestProxy proxy) {
|
||||
SMRunnerUtil.addToInvokeLater(new Runnable() {
|
||||
public void run() {
|
||||
final int rowIndex = myStatisticsTableView.convertRowIndexToView(myTableModel.getIndexOf(proxy));
|
||||
myStatisticsTableView.setRowSelectionInterval(rowIndex, rowIndex >= 0 ? rowIndex : 0);
|
||||
// Scroll to visible
|
||||
TableUtil.scrollSelectionToVisible(myStatisticsTableView);
|
||||
final int indexOf = myTableModel.getIndexOf(proxy);
|
||||
if (indexOf > -1) {
|
||||
final int rowIndex = myStatisticsTableView.convertRowIndexToView(indexOf);
|
||||
myStatisticsTableView.setRowSelectionInterval(rowIndex, rowIndex >= 0 ? rowIndex : 0);
|
||||
// Scroll to visible
|
||||
TableUtil.scrollSelectionToVisible(myStatisticsTableView);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user