Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328416

Summary: Providing additional inclusion filters for XML Validator using an extension-point contribution
Product: [WebTools] WTP Common Tools Reporter: Vasanth Velusamy <vasanthv16>
Component: wst.validationAssignee: wst.validation <wst.validation-inbox>
Status: NEW --- QA Contact: Chuck Bridgham <cbridgha>
Severity: enhancement    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Vasanth Velusamy CLA 2010-10-21 17:06:19 EDT
This enhancement request stems from a forum discussion (http://www.eclipse.org/forums/index.php?t=msg&th=73028&)

I have a content type whose base type is org.eclipse.core.runtime.xml. I would like XML Validation to be enabled on this content type. When I open Preferences > Validation > XML Validator > Settings >Validation Filters for XML Validator, I see that org.eclipse core.runtime.xml is in the 'Include Group', but it has 'excludes subtypes'. When I manually add my content type to the 'Include Group', I get the behavior I want. It would be nice to do this declaratively, through an extension point, so that validation is enabled by default.

The validation framework provides for contributing exclusion rules to an 
existing validator. See this extension point 
org.eclipse.wst.validation.exclude and 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=227834 for details.

There is no such extension point to contribute new inclusion rules to an 
existing validator.