mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-101297 - IOOBE: ChooseByNameBase.applySelection
This commit is contained in:
@@ -1116,7 +1116,9 @@ public abstract class ChooseByNameBase {
|
||||
private void applySelection(SelectionPolicy selection) {
|
||||
List<Integer> indices = selection.performSelection(this, myListModel);
|
||||
myList.setSelectedIndices(Ints.toArray(indices));
|
||||
ScrollingUtil.ensureIndexIsVisible(myList, indices.get(0).intValue(), 0);
|
||||
if (!indices.isEmpty()) {
|
||||
ScrollingUtil.ensureIndexIsVisible(myList, indices.get(0).intValue(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
|
||||
Reference in New Issue
Block a user