From 8ad0f3121aeff4b496ff6c151a009dfabf0dc43d Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 23 Oct 2013 19:59:16 +0400 Subject: [PATCH] checkCanceled --- .../intellij/codeInspection/ex/InspectionProfileWrapper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileWrapper.java b/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileWrapper.java index 6bf6c140234d..136ea58bcda7 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileWrapper.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import com.intellij.codeInsight.daemon.HighlightDisplayKey; import com.intellij.codeInspection.InspectionProfile; import com.intellij.codeInspection.InspectionProfileEntry; import com.intellij.openapi.diagnostic.Logger; +import com.intellij.openapi.progress.ProgressManager; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Key; import com.intellij.psi.PsiElement; @@ -63,6 +64,7 @@ public class InspectionProfileWrapper { alreadyChecked = true; Set uniqTools = new THashSet(toolWrappers.length); for (InspectionToolWrapper toolWrapper : toolWrappers) { + ProgressManager.checkCanceled(); if (!uniqTools.add(toolWrapper.getTool())) { LOG.error("Inspection " + toolWrapper.getDisplayName() + " (" + toolWrapper.getTool().getClass() + ") already registered"); }