/** * This method could be called with the project's values, or with the global preference values. * Validators that are not configured on this project will be ignored. */ public void setValidators(ValidatorMetaData[] vmds) { super.setValidators(extractProjectValidators(vmds, getResource())); }
/** * This method could be called with the project's values, or with the global preference values. * Validators that are not configured on this project will be ignored. */ public void setEnabledValidators(ValidatorMetaData[] vmds) { super.setEnabledValidators(extractProjectValidators(vmds, getResource())); }
/** * 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. }
/** * If the preferences should be used then the preference settings are returned; otherwise return * the project settings. */ public ValidatorMetaData[] getEnabledValidators() throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getEnabledValidators(), getResource()); } return super.getEnabledValidators(); }
public ValidatorMetaData[] getManualEnabledValidators() throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getManualEnabledValidators(), getResource()); } return super.getManualEnabledValidators(); }
public ValidatorMetaData[] getEnabledFullBuildValidators(boolean fullBuild) throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getEnabledFullBuildValidators(fullBuild), getResource()); } return super.getEnabledFullBuildValidators(fullBuild); }
/** * @see org.eclipse.wst.validation.internal.operations.internal.preference.ValidationConfiguration#getValidators() */ public ValidatorMetaData[] getValidators() throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getValidators(), getResource()); } return super.getValidators(); }
/** * @see org.eclipse.wst.validation.internal.operations.internal.attribute.ValidationConfiguration#getEnabledIncrementalValidators(boolean) */ public ValidatorMetaData[] getEnabledIncrementalValidators(boolean incremental) throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getEnabledIncrementalValidators(incremental), getResource()); } return super.getEnabledIncrementalValidators(incremental); }
public ValidatorMetaData[] getIncrementalValidators() throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getIncrementalValidators(), getResource()); } return super.getIncrementalValidators(); }
public ValidatorMetaData[] getBuildEnabledValidators() throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getBuildEnabledValidators(), getResource()); } return super.getBuildEnabledValidators(); }
/** * @see org.eclipse.wst.validation.internal.operations.internal.preference.ValidationConfiguration#getDisabledValidators() */ public ValidatorMetaData[] getDisabledValidators() throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getDisabledValidators(), getResource()); } return super.getDisabledValidators(); }
public ValidatorMetaData[] getEnabledFullBuildValidators(boolean fullBuild, boolean onlyReferenced) throws InvocationTargetException { if (useGlobalPreference()) { return extractProjectValidators(ConfigurationManager.getManager().getGlobalConfiguration().getEnabledFullBuildValidators(fullBuild), getResource(), onlyReferenced); } return super.getEnabledFullBuildValidators(fullBuild, onlyReferenced); }