void () { StatusText statusText = getEmptyText(); VisiblePack visiblePack = getModel().getVisiblePack(); DataPackBase dataPack = visiblePack.getDataPack(); if (dataPack instanceof DataPack.ErrorDataPack) { setErrorEmptyText(((DataPack.ErrorDataPack)dataPack).getError(), VcsLogBundle.message("vcs.log.error.loading.commits.status")); appendActionToEmptyText(VcsLogBundle.message("vcs.log.refresh.status.action"), () -> myLogData.refresh(myLogData.getLogProviders().keySet())); } else if (visiblePack instanceof VisiblePack.ErrorVisiblePack) { setErrorEmptyText(((VisiblePack.ErrorVisiblePack)visiblePack).getError(), VcsLogBundle.message("vcs.log.error.filtering.status")); if (visiblePack.getFilters().isEmpty()) { appendActionToEmptyText(VcsLogBundle.message("vcs.log.refresh.status.action"), myRefresh); } else { VcsLogUiUtil.appendResetFiltersActionToEmptyText(myFilterUi, getEmptyText()); } } else if (visiblePack.getVisibleGraph().getVisibleCommitCount() == 0) { if (visiblePack.getFilters().isEmpty()) { statusText.setText(VcsLogBundle.message("vcs.log.no.commits.status")). appendSecondaryText(VcsLogBundle.message("vcs.log.commit.status.action"), SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES, ActionUtil.createActionListener(IdeActions.ACTION_CHECKIN_PROJECT, this, ActionPlaces.UNKNOWN)); String shortcutText = KeymapUtil.getFirstKeyboardShortcutText(IdeActions.ACTION_CHECKIN_PROJECT); if (!shortcutText.isEmpty()) { statusText.appendSecondaryText(" (" + shortcutText + ")", StatusText.DEFAULT_ATTRIBUTES, null); } } else { myFilterUi.setCustomEmptyText(getEmptyText()); } } else { statusText.setText(VcsLogBundle.message("vcs.log.default.status")); } }