コード例 #1
0
 @Override
 public void restart(@NotNull PsiFile file) {
   Document document = PsiDocumentManager.getInstance(myProject).getCachedDocument(file);
   if (document == null) return;
   myFileStatusMap.markFileScopeDirty(
       document, new TextRange(0, document.getTextLength()), file.getTextLength());
   stopProcess(true);
 }
コード例 #2
0
  public void projectClosed() {
    assert myInitialized : "Disposing not initialized component";
    assert !myDisposed : "Double dispose";

    stopProcess(false);

    myDisposed = true;
    myLastSettings = null;
  }
コード例 #3
0
 public void setImportHintsEnabled(@NotNull PsiFile file, boolean value) {
   VirtualFile vFile = file.getVirtualFile();
   if (value) {
     myDisabledHintsFiles.remove(vFile);
     stopProcess(true);
   } else {
     myDisabledHintsFiles.add(vFile);
     HintManager.getInstance().hideAllHints();
   }
 }
コード例 #4
0
 @TestOnly
 public void cleanupAfterTest(boolean dispose) {
   if (!myProject.isOpen()) return;
   stopProcess(false);
   if (dispose) {
     projectClosed();
     Disposer.dispose(myStatusBarUpdater);
     myStatusBarUpdater = null;
     Disposer.dispose(myDaemonListeners);
     myDaemonListeners = null;
   }
   setUpdateByTimerEnabled(false);
   waitForTermination();
 }
コード例 #5
0
 public void restart() {
   myFileStatusMap.markAllFilesDirty();
   stopProcess(true);
 }
コード例 #6
0
 public void setUpdateByTimerEnabled(boolean value) {
   myUpdateByTimerEnabled = value;
   stopProcess(value);
 }