Bug 295066 - Need a ValidationFramework.getEnabledValidatorsFor(IResource) API method
Summary: Need a ValidationFramework.getEnabledValidatorsFor(IResource) API method
Status: CLOSED INVALID
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.validation (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: wst.validation CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 262151
  Show dependency tree
 
Reported: 2009-11-13 08:33 EST by Ian Tewksbury CLA
Modified: 2010-05-11 10:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Tewksbury CLA 2009-11-13 08:33:53 EST
Currently there is a ValidationFramework#getDisabledValidatorsFor(IResource) but no ValidationFramework#getEnabledValidatorsFor(IResource) .  I think the results of a getEnabledValidatorsFor could be finagled by calling getValidatorsFor(IResource resource, boolean isManual, boolean isBuild) twice, once to get the isManual validators and once to get the isBuild validators and then combining the results into a set with no duplicates (there would be duplicates for validators activated for both) but this could be done more efficiently on the ValidationFramework then having to call getValidatorsFor twice.

This request is so that I can implement  Bug 262151 and I would rather not have to do the two getValidatorsFor calls.  Plus I have not tried it yet and I am not 100% convinced I would end up with a list of just the activated validators.  The comment in getValidatorsFor is a bit confusing in saying: "A validator is still returned even if it has been turned off by the user." but then the method has the boolean parameters to request isMnaula and isBuild validators which makes it seem you can prevent it from returning validators turned off by the user.
Comment 1 Ian Tewksbury CLA 2010-05-11 10:52:55 EDT
This is no longer needed, another solution was devised.