From 8269ecda9af6252f8f4141e37bfdf35fc05770d5 Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 9 Nov 2009 18:16:23 +0300 Subject: [PATCH] copy profile for each run (IDEADEV-41252) --- .../codeInspection/ex/GlobalInspectionContextImpl.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 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 581f2fac41..16fb7c7102 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java @@ -542,18 +542,8 @@ public class GlobalInspectionContextImpl implements GlobalInspectionContext { public void initializeTools(List tools, List localTools) { myJobDescriptors = new ArrayList(); - final InspectionProfile profile = getCurrentProfile(); - InspectionProfileWrapper inspectionProfile = InspectionProjectProfileManager.getInstance(myProject).getProfileWrapper(profile.getName()); - if (inspectionProfile == null){ - inspectionProfile = new InspectionProfileWrapper(profile); - final InspectionProfileWrapper profileWrapper = inspectionProfile; - ApplicationManager.getApplication().runReadAction(new Runnable() { - public void run() { - profileWrapper.init(getProject()); //offline inspections only - } - }); - } - final List usedTools = ((InspectionProfileImpl)inspectionProfile.getInspectionProfile()).getAllEnabledInspectionTools(); + final InspectionProfileImpl profile = new InspectionProfileImpl((InspectionProfileImpl)getCurrentProfile()); + final List usedTools = profile.getAllEnabledInspectionTools(); for (Tools currentTools : usedTools) { final String shortName = currentTools.getShortName(); myTools.put(shortName, currentTools); -- 2.11.4.GIT