// the correct entity resolver.
JarFileEntityResolver repositorySchemaResolver =
RepositorySchemaResolverFactory.create();
QueueingXercesBasedDOMValidator validator =
new QueueingXercesBasedDOMValidator(
repositorySchemaResolver,
errorReporter);
boolean fasterValidation = true; // Default to trueDefault();
BuilderPlugin builderPlugin = BuilderPlugin.getDefault();
if (builderPlugin != null) {
// If there is a preference for fasterValidation then use it
IPreferenceStore store =
BuilderPlugin.getDefault().getPreferenceStore();
fasterValidation = store.getBoolean(
MCSPreferencePage.PREF_FASTER_VALIDATION);
}
validator.setFastValidation(fasterValidation);
return validator;
}