protected void refreshTables() {
FolderPanel activePanel = getMainFrame().getActivePanel();
FolderPanel inactivePanel = getMainFrame().getInactivePanel();
if(hasFolderChanged(inactivePanel.getCurrentFolder()))
inactivePanel.tryRefreshCurrentFolder();
if(hasFolderChanged(activePanel.getCurrentFolder())) {
// Select file specified by selectFileWhenFinished (if any) only if the file exists in the active table's folder
if(fileToSelect!=null && activePanel.getCurrentFolder().equalsCanonical(fileToSelect.getParent()) && fileToSelect.exists())
activePanel.tryRefreshCurrentFolder(fileToSelect);