From c061e2fe9c309d385b22dcb2b87dfc2a444736a4 Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 24 Jun 2011 15:36:05 +0400 Subject: [PATCH] view offline inspection results: do not try to use root profile instead of inspection based => use profile by loaded data instead --- .../codeInspection/actions/ViewOfflineResultsAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/actions/ViewOfflineResultsAction.java b/platform/lang-impl/src/com/intellij/codeInspection/actions/ViewOfflineResultsAction.java index 4eea092f0c7b..25b76da3a900 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/actions/ViewOfflineResultsAction.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/actions/ViewOfflineResultsAction.java @@ -149,7 +149,7 @@ public class ViewOfflineResultsAction extends AnAction implements DumbAware { final String title) { Profile profile; if (profileName != null) { - profile = InspectionProjectProfileManager.getInstance(project).getProfile(profileName); + profile = InspectionProjectProfileManager.getInstance(project).getProfile(profileName, false); if (profile == null) { profile = InspectionProfileManager.getInstance().getProfile(profileName, false); } @@ -162,7 +162,7 @@ public class ViewOfflineResultsAction extends AnAction implements DumbAware { inspectionProfile = (InspectionProfile)profile; } else { - inspectionProfile = new InspectionProfileImpl("Server Side") { + inspectionProfile = new InspectionProfileImpl(profileName) { public boolean isToolEnabled(final HighlightDisplayKey key, PsiElement element) { return resMap.containsKey(key.toString()); }