Fix the currently selected row always drifts and moves down to the bottom row
@@ -1231,7 +1231,9 @@ public class Translator {
public void refreshPackages() {
int index = wPackages.getSelectionIndex();
+ int topIndex = wPackages.table.getTopIndex();
+ wPackages.table.setRedraw(false);
// OK, we have a distinct list of packages to work with...
wPackages.table.removeAll();
@@ -1292,10 +1294,13 @@ public class Translator {
}
}
+ if (topIndex > 0) {
+ wPackages.table.setTopIndex(topIndex);
+ }
if (index >= 0) {
wPackages.table.setSelection(index);
- wPackages.table.showSelection();
}
+ wPackages.table.setRedraw(true);
}
private String getShortSourceFolder(String rootFolder, String sourceFolder) {
