function _handleFileChanged() {
        if (findBar) {
            findBar.close();
        }
    }
@private
When the user switches documents (or closes the last document), ensure that the find bar
closes, and also close the Replace All panel.