Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Providing additional validation filters for XML Validator using an extension-point contribution?
Providing additional validation filters for XML Validator using an extension-point contribution? [message #228314] Tue, 24 February 2009 23:14 Go to next message
Eclipse UserFriend
Originally posted by: vasanthv16.yahoo.com

Hi,


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. I am
wondering if there is an extension-point that I can use for contributing
through my plugin, to do the same, instead of manually setting it.


With the V2 validation framework, I see that there is a new extension
point (org.eclipse.wst.validation.validator-v2) that can be used to
provide a validator and inclusion/exclusion rules. However, I don't see
a way to provide additional inclusion/exclusion rules for already
existing validator. Is that possible?

Or is there something I am overlooking? Is there some other way to
achieve the same?

Thanks,
Vasanth
Re: Providing additional validation filters for XML Validator using an extension-point contribution? [message #228417 is a reply to message #228314] Thu, 26 February 2009 15:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: valentinbaciu.hotmail.com

Vasanth,

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. Please open an enhancement request here
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Co mmon%20Tools&component=wst.validation&version=3.1

Regards, Valentin

"Vasanth Velusamy" <vasanthv16@yahoo.com> wrote in message
news:go1v15$9tr$1@build.eclipse.org...
> Hi,
>
>
> 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. I am
> wondering if there is an extension-point that I can use for contributing
> through my plugin, to do the same, instead of manually setting it.
>
>
> With the V2 validation framework, I see that there is a new extension
> point (org.eclipse.wst.validation.validator-v2) that can be used to
> provide a validator and inclusion/exclusion rules. However, I don't see a
> way to provide additional inclusion/exclusion rules for already existing
> validator. Is that possible?
>
> Or is there something I am overlooking? Is there some other way to achieve
> the same?
>
> Thanks,
> Vasanth
Re: Providing additional validation filters for XML Validator using an extension-point contribution? [message #634482 is a reply to message #228417] Thu, 21 October 2010 21:08 Go to previous message
Vasanth Velusamy is currently offline Vasanth VelusamyFriend
Messages: 31
Registered: July 2009
Member
Hi Valentin,

I've created an enhancement request for this -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=328416

Just took a bit longer for me to get around to this than I thought it
would :)

- Vasanth

On 2/26/2009 10:18 AM, Valentin wrote:
> Vasanth,
>
> 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. Please open an enhancement request here
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Co mmon%20Tools&component=wst.validation&version=3.1
>
> Regards, Valentin
>
> "Vasanth Velusamy"<vasanthv16@yahoo.com> wrote in message
> news:go1v15$9tr$1@build.eclipse.org...
>> Hi,
>>
>>
>> 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. I am
>> wondering if there is an extension-point that I can use for contributing
>> through my plugin, to do the same, instead of manually setting it.
>>
>>
>> With the V2 validation framework, I see that there is a new extension
>> point (org.eclipse.wst.validation.validator-v2) that can be used to
>> provide a validator and inclusion/exclusion rules. However, I don't see a
>> way to provide additional inclusion/exclusion rules for already existing
>> validator. Is that possible?
>>
>> Or is there something I am overlooking? Is there some other way to achieve
>> the same?
>>
>> Thanks,
>> Vasanth
>
>
Previous Topic:Prevent Error Log Activation
Next Topic:classpath dependancy validator warning for JDBC
Goto Forum:
  


Current Time: Thu Apr 25 05:51:25 GMT 2024

Powered by FUDForum. Page generated in 0.03909 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top