com.intellij.openapi.progress.ProgressManager



API Populatity

3 Client projects

Project: com.intellij

Project JetBrains/intellij-community in file ...lij.codeInspection.ex.InspectionToolRegistrar.java (2009-02-14)
@@ -10,6 +10,7 @@ import com.intellij.openapi.components.ServiceManager;
 import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.extensions.Extensions;
 import com.intellij.openapi.util.Factory;
+import com.intellij.openapi.progress.ProgressManager;
 import com.intellij.profile.codeInspection.ui.ErrorOptionsConfigurable;
 import com.intellij.util.ArrayUtil;
 import gnu.trove.THashSet;
@@ -98,6 +99,7 @@ public class InspectionToolRegistrar {
     ensureInitialized();
     InspectionTool[] tools = new InspectionTool[myInspectionToolFactories.size()];
     for(int i=0; i<tools.length; i++) {
+      ProgressManager.getInstance().checkCanceled();
       tools [i] = myInspectionToolFactories.get(i).create();
     }
     buildInspectionIndex(tools);
Project JetBrains/intellij-community in file ....intellij.openapi.compiler.ex.CompilerPathsEx.java (2006-03-17)
@@ -4,14 +4,15 @@ import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.compiler.CompilerPaths;
 import com.intellij.openapi.module.Module;
 import com.intellij.openapi.module.ModuleManager;
+import com.intellij.openapi.progress.ProgressManager;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.roots.ModuleRootManager;
 import com.intellij.openapi.roots.OrderEntry;
 import com.intellij.openapi.roots.OrderRootType;
 import com.intellij.openapi.util.Computable;
+import com.intellij.openapi.vfs.JarFileSystem;
 import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.openapi.vfs.VirtualFileManager;
-import com.intellij.openapi.vfs.JarFileSystem;
 import com.intellij.util.PathUtil;
 import com.intellij.util.containers.OrderedSet;
 import gnu.trove.TObjectHashingStrategy;
@@ -35,6 +36,7 @@ public class CompilerPathsEx extends CompilerPaths {
     }
 
     protected void acceptDirectory(final VirtualFile file, final String fileRoot, final String filePath) {
+      ProgressManager.getInstance().checkCanceled();
       final VirtualFile[] children = file.getChildren();
       for (final VirtualFile child : children) {
         final String name = child.getName();
Project JetBrains/intellij-community in file ...ns.plugins.groovy.lang.psi.dataFlow.DFAEngine.java (2012-03-15)
@@ -15,6 +15,7 @@
  */
 package org.jetbrains.plugins.groovy.lang.psi.dataFlow;
 
+import com.intellij.openapi.progress.ProgressManager;
 import org.jetbrains.plugins.groovy.lang.psi.controlFlow.CallEnvironment;
 import org.jetbrains.plugins.groovy.lang.psi.controlFlow.CallInstruction;
 import org.jetbrains.plugins.groovy.lang.psi.controlFlow.ControlFlowBuilderUtil;
@@ -77,6 +78,7 @@ public class DFAEngine<E> {
         visited[instr.num()] = true;
 
         while (!workList.isEmpty()) {
+          ProgressManager.checkCanceled();
           final Instruction curr = workList.remove();
           final int num = curr.num();
           final E oldE = info.get(num);