コード例 #1
0
  public void disposeUIResources() {
    if (myUiDisposed) return;

    super.disposeUIResources();

    myUiDisposed = true;

    myAutoScrollHandler.cancelAllRequests();

    myContext.getDaemonAnalyzer().clear();

    Disposer.dispose(this);
  }
コード例 #2
0
  public void init(StructureConfigurableContext context) {
    myContext = context;
    myContext
        .getDaemonAnalyzer()
        .addListener(
            new ProjectStructureDaemonAnalyzerListener() {
              public void problemsChanged(@NotNull ProjectStructureElement element) {
                if (!myTree.isShowing()) return;

                myTree.revalidate();
                myTree.repaint();
              }
            });
  }
コード例 #3
0
  public void reset() {
    myUiDisposed = false;

    if (!myWasTreeInitialized) {
      initTree();
      myTree.setShowsRootHandles(false);
      loadTree();
    } else {
      super.disposeUIResources();
      myTree.setShowsRootHandles(false);
      loadTree();
    }
    for (ProjectStructureElement element : getProjectStructureElements()) {
      myContext.getDaemonAnalyzer().queueUpdate(element);
    }

    super.reset();
  }