From 14e104ed9198d126e8d53036e79ab6fccabc5bf3 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Mon, 6 Oct 2014 18:11:56 +0200 Subject: [PATCH] fix cleanup on commit: proceed with commit --- .../ex/GlobalInspectionContextImpl.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java index b130b3cd420d..a82d5ba1f69d 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java @@ -701,14 +701,17 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp }); if (results.isEmpty()) { - if (commandName != null) { - UIUtil.invokeLaterIfNeeded(new Runnable() { - @Override - public void run() { + UIUtil.invokeLaterIfNeeded(new Runnable() { + @Override + public void run() { + if (commandName != null) { NOTIFICATION_GROUP.createNotification(InspectionsBundle.message("inspection.no.problems.message"), MessageType.INFO).notify(getProject()); } - }); - } + if (postRunnable != null) { + postRunnable.run(); + } + } + }); return; } Runnable runnable = new Runnable() {