From 87e1ab64e7ddb9785fc56a64ababed15968f2944 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Mon, 17 Aug 2015 15:14:34 +0200 Subject: [PATCH] TableScrollingUtil is deprecated. Use ScrollingUtil --- .../com/intellij/find/actions/ShowUsagesAction.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java b/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java index 57730d56b6bf..3328b2741007 100644 --- a/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java +++ b/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java @@ -259,7 +259,7 @@ public class ShowUsagesAction extends AnAction implements PopupAction { addUsageNodes(usageView.getRoot(), usageView, new ArrayList()); - TableScrollingUtil.installActions(table); + ScrollingUtil.installActions(table); final List data = collectData(usages, visibleNodes, usageView, presentation); setTableModel(table, usageView, data, outOfScopeUsages, options.searchScope); @@ -1008,13 +1008,13 @@ public class ShowUsagesAction extends AnAction implements PopupAction { int newSelection = updateModel(tableModel, existingData, data, row == -1 ? 0 : row); if (newSelection < 0 || newSelection >= tableModel.getRowCount()) { - TableScrollingUtil.ensureSelectionExists(table); + ScrollingUtil.ensureSelectionExists(table); newSelection = table.getSelectedRow(); } else { table.getSelectionModel().setSelectionInterval(newSelection, newSelection); } - TableScrollingUtil.ensureIndexIsVisible(table, newSelection, 0); + ScrollingUtil.ensureIndexIsVisible(table, newSelection, 0); if (popup != null) { setSizeAndDimensions(table, popup, popupPosition, data); @@ -1059,7 +1059,7 @@ public class ShowUsagesAction extends AnAction implements PopupAction { Dimension dimension = new Dimension(newWidth, table.getRowHeight() * rowsToShow); Rectangle rectangle = fitToScreen(dimension, popupPosition, table); if (!data.isEmpty()) { - TableScrollingUtil.ensureSelectionExists(table); + ScrollingUtil.ensureSelectionExists(table); } table.setSize(rectangle.getSize()); //table.setPreferredSize(dimension); @@ -1184,7 +1184,7 @@ public class ShowUsagesAction extends AnAction implements PopupAction { private static class MyTable extends JBTableWithHintProvider implements DataProvider { public MyTable() { - TableScrollingUtil.installActions(this); + ScrollingUtil.installActions(this); } @Override