Examples of checkCanceled()


Examples of com.intellij.openapi.progress.ProgressIndicator.checkCanceled()

          if (indicator != null) {
            indicator.setText("pub list-package-dirs");
            indicator.setText2("Module: " + module.getName());
            indicator.setIndeterminate(false);
            indicator.setFraction((i + 1.) / modules.length);
            indicator.checkCanceled();
          }

          if (DartSdkGlobalLibUtil.isDartSdkGlobalLibAttached(module, sdk.getGlobalLibName())) {
            for (VirtualFile contentRoot : ModuleRootManager.getInstance(module).getContentRoots()) {
              if (contentRoot.findChild(PubspecYamlUtil.PUBSPEC_YAML) != null) continue;
View Full Code Here

Examples of com.intellij.openapi.progress.ProgressIndicator.checkCanceled()

                progressIndicator.setFraction(x);
              }

              @Override
              public void checkCanceled() {
                progressIndicator.checkCanceled();
              }
            });
            progressIndicator.popState();
          }
        }
View Full Code Here

Examples of com.intellij.openapi.progress.ProgressIndicator.checkCanceled()

    final Runnable contentLoadingRunnable = new Runnable() {
      public void run() {
        try {
          for (VirtualFile file : myFilesToUpdate) {
            if (indicator != null) indicator.checkCanceled();
            contentQueue.put(file);
          }
        }
        catch (ProcessCanceledException e) {
          // Do nothing, exit the thread.
View Full Code Here

Examples of com.intellij.openapi.progress.ProgressIndicator.checkCanceled()

      }
      if (content == null) break;
      final VirtualFile file = content.getVirtualFile();
      if (file == null) break;
      if (indicator != null) {
        indicator.checkCanceled();
        indicator.setFraction((double)++count / totalFiles);
        indicator.setText2(file.getPresentableUrl());
      }
      for (int i = 0; i < myUpdaters.size(); i++) {
        CacheUpdater updater = myUpdaters.get(i);
View Full Code Here

Examples of com.intellij.openapi.progress.ProgressIndicator.checkCanceled()

        content = new FileContent(file);
        if (file.isValid()) {
          try {
            if (content.getPhysicalLength() < SIZE_THRESHOLD) {
              while (totalSize > SIZE_THRESHOLD) {
                if (indicator != null) indicator.checkCanceled();
                wait(300);
              }

              totalSize += content.getPhysicalBytes().length;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.