public void reloadViews()

in src/net/sourceforge/transparent/CCaseViewsManager.java [179:217]


  public void reloadViews() {
    TransparentVcs host = TransparentVcs.getInstance(myProject);
    ProjectLevelVcsManager mgr = ProjectLevelVcsManager.getInstance(myProject);
    CCaseConfig config = CCaseConfig.getInstance(myProject);

    VirtualFile[] roots = mgr.getRootsUnderVcs(host);
    try {
      loadAbsentViews(roots);
      removeObsoleteViews(roots);
      logViewsByName(viewsMapByRoot);

      if (CCaseSharedConfig.getInstance(myProject).isUseUcmModel()) {
        extractViewActivities();
        checkViewsWithoutActions();
        synchActivities2ChangeLists(null);
      }
    }
    catch (ClearCaseNoServerException e) {
      TransparentVcs.LOG.info(e);
      String message = SERVER_UNAVAILABLE_MESSAGE + e.getMessage();
      AbstractVcsHelper.getInstance(myProject).showError(new VcsException(message), ERRORS_TAB_NAME);

      config.setOfflineMode(true);
    }
    catch (ClearCaseException e) {
      TransparentVcs.LOG.info(e);
      //  It is possible that some configuration paths point to an invalid
      //  or obsolete view.
      String message = FAILED_TO_INIT_VIEW_MESSAGE + e.getMessage();
      AbstractVcsHelper.getInstance(myProject).showError(new VcsException(message), ERRORS_TAB_NAME);
    }
    catch (RuntimeException e) {
      TransparentVcs.LOG.info(e);
      String message = FAILED_TO_COLLECT_VIEW_MESSAGE + e.getMessage();
      AbstractVcsHelper.getInstance(myProject).showError(new VcsException(message, e), ERRORS_TAB_NAME);

      config.setOfflineMode(true);
    }
  }