Community
Participate
Working Groups
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.
This is no longer needed, another solution was devised.