Bug 264464 - Provisional ValidationFramework API provides no way to modify filter groups
Summary: Provisional ValidationFramework API provides no way to modify filter groups
Status: NEW
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.validation (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: wst.validation CLA
QA Contact: Chuck Bridgham CLA
URL: ORACLE_P1
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2009-02-10 22:40 EST by Nadeem Aboobaker CLA
Modified: 2009-10-08 13:18 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nadeem Aboobaker CLA 2009-02-10 22:40:04 EST
Build ID: M20090204-1400

Steps To Reproduce:
The Provisional API provided by ValidationFramework provides no way to edit/add/remove a validator's filter (include/exclude) groups.


More information:
The ValidationFramework.getValidator(String, IProject) method returns an instance of Validator, and Validator.getGroups()/add(FilterGroup)/remove(FilterGroup) provides a way to manipulate the FilterGroup.  However, FilterGroup is an internal class and thus can change at any time and should not be relied on (specific instance of bug 264463).
Comment 1 Nadeem Aboobaker CLA 2009-02-12 02:03:45 EST
Bumping severity to major, as this issue prevents us from using API only to accomplish setting of filter groups.  Currently, the alternatives are to use internal classes or manipulate the eclipse preferences directly.  The former tends to break our code between SR's and the latter is just plain ugly.
Comment 2 Gary Karasiuk CLA 2009-02-12 04:56:14 EST
In which release do you need this?
Comment 3 Gary Karasiuk CLA 2009-02-12 06:28:48 EST
BTW, the ability to alter filter groups progammatically was intentionally not part of the API. 

I am trying to keep the surface area of the API to the things that people actually plan to use.

Now that you want it, we can look how best to add it.