private ValidatorMetaData[] getStateOfProjectLevelValidatorsFromGlobal(ProjectConfiguration prjp) throws InvocationTargetException { List enabledGlobalValidatorsForProject = new ArrayList(); GlobalConfiguration gf = ConfigurationManager.getManager().getGlobalConfiguration(); List allProjectValidator = getAllValidatorUniqueNames(prjp.getValidators()); ValidatorMetaData[] vmd = gf.getBuildEnabledValidators(); for(int i = 0; i < vmd.length; i++) { if(allProjectValidator.contains(vmd[i].getValidatorUniqueName())) { enabledGlobalValidatorsForProject.add(vmd[i]); } } return (ValidatorMetaData[]) enabledGlobalValidatorsForProject.toArray(new ValidatorMetaData[enabledGlobalValidatorsForProject.size()]); }
public ValidatorMetaData[] getBuildEnabledValidators() throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getBuildEnabledValidators(), getResource()); } return super.getBuildEnabledValidators(); }
public void resetToDefaultForProjectDescriptionChange() throws InvocationTargetException { // The default values of the project is whatever the preference values are GlobalConfiguration gp = ConfigurationManager.getManager().getGlobalConfiguration(); setEnabledManualValidators(gp.getManualEnabledValidators()); setEnabledBuildValidators(gp.getBuildEnabledValidators()); setDelegatingValidators(gp.getDelegatingValidators()); }
public void resetToDefault() throws InvocationTargetException { // The default values of the project is whatever the preference values are GlobalConfiguration gp = ConfigurationManager.getManager().getGlobalConfiguration(); setEnabledManualValidators(gp.getManualEnabledValidators()); setEnabledBuildValidators(gp.getBuildEnabledValidators()); setDelegatingValidators(gp.getDelegatingValidators()); // except for this field, which is unique to the project preferences setDoesProjectOverride(getDoesProjectOverrideDefault()); }
public void resetToDefault() throws InvocationTargetException { setDisableAllValidation(getDisableValidationDefault()); setEnabledValidators(getEnabledValidatorsDefault()); setEnabledManualValidators(getManualEnabledValidators()); setEnabledBuildValidators(getBuildEnabledValidators()); setCanProjectsOverride(getCanProjectsOverrideDefault()); setSaveAutomatically(getSaveAutomaticallyDefault()); setDefaultDelegates(getValidators()); }