/** * Run the identified validators on the project with the ruleGroup. * * IProject must exist and be open. * * If async is true, the validation will run all validators implementing IValidatorJob interface * in the background validation thread, if async is false, it would run in the main thread. * All validators implementing IValidator interface will run in in the main thread regardless of this flag. */ protected EnabledValidatorsOperation(IProject project, Set enabledValidators, int ruleGroup, boolean force, boolean async) { super(project, force, ruleGroup, async); setEnabledValidators(enabledValidators); }
private void performFullBuild(IProgressMonitor monitor, ProjectConfiguration prjp, boolean onlyDependentValidators) throws InvocationTargetException { ValidatorMetaData[] enabledValidators = prjp.getEnabledFullBuildValidators(true, onlyDependentValidators); if ((enabledValidators != null) && (enabledValidators.length > 0)) { Set enabledValidatorsSet = InternalValidatorManager.wrapInSet(enabledValidators); EnabledValidatorsOperation op = new EnabledValidatorsOperation(getProject(), enabledValidatorsSet, true); op.run(monitor); } }
/** * Run the identified validators on the project with the ruleGroup. * * IProject must exist and be open. * * If async is true, the validation will run all validators implementing IValidatorJob interface * in the background validation thread, if async is false, it would run in the main thread. * All validators implementing IValidator interface will run in in the main thread regardless of this flag. */ protected EnabledValidatorsOperation(IProject project, IWorkbenchContext aWorkbenchContext, Set enabledValidators, int ruleGroup, boolean force, boolean async) { super(project,aWorkbenchContext,force, ruleGroup, async); setEnabledValidators(enabledValidators); } }