[vcs] IDEA-117394 set empty text to "loading..." only if in refresh

This commit is contained in:
Kirill Likhodedov
2015-04-14 15:36:54 +03:00
parent 5fb05041b1
commit 001ee0bce5
@@ -578,9 +578,12 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
if ((virtualFile == null || !virtualFile.isValid()) && !myFilePath.getIOFile().exists()) {
setEmptyText("File " + myFilePath.getName() + " not found");
}
else {
else if (myInRefresh) {
setEmptyText(CommonBundle.getLoadingTreeNodeText());
}
else {
setEmptyText(StatusText.DEFAULT_EMPTY_TEXT);
}
}
private void setEmptyText(@NotNull String emptyText) {