inspection toolwindow: IDEA-156462 'Inspection result tool window' on preview shows '1 problemS' when performing analysis

This commit is contained in:
Dmitry Batkovich
2016-05-24 08:47:01 +03:00
parent 25f1192c40
commit 77c698ca34
@@ -27,6 +27,7 @@ import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.ex.EditorEx;
import com.intellij.openapi.util.Disposer;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.ui.IdeBorderFactory;
import com.intellij.ui.SimpleColoredComponent;
import com.intellij.util.ui.AsyncProcessIcon;
@@ -219,6 +220,6 @@ public class QuickFixPreviewPanelFactory {
private static void appendTextToLabel(SimpleColoredComponent label,
int problemsCount) {
label.append(problemsCount + " problems:");
label.append(problemsCount + " " + StringUtil.pluralize("problem", problemsCount) + ":");
}
}