Beispiel #1
0
  /**
   * Answer true if the project has disabled all of it's validators, or if project overrides are not
   * allowed if global validation has been disabled.
   *
   * @param project the project that is being consulted, or null if only the global settings are to
   *     be checked.
   */
  public boolean isDisabled(IProject project) {
    GlobalPreferences gp = getGlobalPreferences();
    if (!gp.getOverride() || project == null) return gp.getDisableAllValidation();

    ProjectPreferences pp = _projectPreferences.get(project);
    if (pp == null) return gp.getDisableAllValidation();
    return pp.getSuspend();
  }