/** * This constructor should be used in all cases except for the Preference page's values. */ public GlobalConfiguration(IWorkspaceRoot root) throws InvocationTargetException { super(root, convertToArray(ValidationRegistryReader.getReader().getAllValidators())); // Can't put the call to load() and passivate() in the ValidationConfiguration constructor // due // to the order of initialization. // 1. First the ValidationConfiguration constructor is called, and that loads the stored // values. // 2. Then this class's <init> method is called, and that initializes the "override" field // to the default, // which may be different than the stored value. }
Set projVmds; String[] projectFacetIds = getProjectFacetIds(project); Iterator allValidators = getAllValidators().iterator(); while (allValidators.hasNext()) { ValidatorMetaData vmd = (ValidatorMetaData) allValidators.next();
/** * This constructor should be used in all cases except for the Properties page's values. */ protected ProjectConfiguration(IProject project) throws InvocationTargetException { // The extractProjectValidators method extracts just this project's validators from the // global list. super(project, extractProjectValidators(convertToArray(ValidationRegistryReader.getReader().getAllValidators()), project)); // Can't put the call to load() and passivate() in the ValidationConfiguration constructor // due // to the order of initialization. // 1. First the ValidationConfiguration constructor is called, and that loads the stored // values. // 2. Then this class's <init> method is called, and that initializes the "override" field // to the default, // which may be different than the stored value. }
Iterator allValidators = getAllValidators().iterator(); while (allValidators.hasNext()) { ValidatorMetaData vmd = (ValidatorMetaData) allValidators.next();