Ejemplo n.º 1
0
 /** This method needs to be called whenever the validation configuration has changed. */
 private void configHasChanged() {
   _configNumber.incrementAndGet();
   ValidatorProjectManager.reset();
   _cache.reset();
 }
Ejemplo n.º 2
0
 /**
  * Let the validation manager know that a project has been removed.
  *
  * @param project The project that has been closed or deleted.
  */
 public void projectRemoved(IProject project) {
   ValidatorProjectManager.reset();
   _projectPreferences.remove(project);
   _cache.reset(project);
 }
Ejemplo n.º 3
0
 /**
  * Answer a cached copy of the the validators for a given project. This is a front end method, for
  * the getValidatorsNotCached() method.
  *
  * <p>Individual projects may override the global validation preference settings. If the project
  * has it's own settings, then those validators are returned via this method.
  *
  * <p>The following approach is used. For version 1 validators, the validator is only returned if
  * it is defined to operate on this project type. This is the way that the previous version of the
  * framework did it. For version 2 validators, they are all returned.
  *
  * @param project This may be null, in which case the global preferences are returned.
  * @return The validators in name sorted order.
  */
 public Validator[] getValidators(IProject project) throws ProjectUnavailableError {
   return _cache.getValidatorsCached(project);
 }