| Summary: | [DataBinding] CompositeValidator and ValidationError | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Peter Centgraf <peter> | ||||||
| Component: | UI | Assignee: | Boris Bokowski <bokowski> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | djo, nigelipse | ||||||
| Version: | 3.2 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | stalebug | ||||||||
| Attachments: |
|
||||||||
|
Description
Peter Centgraf
Now that IValidator operates in terms of IStatus, option 1 (above) seems to make the most sense. A composite IValidator could then return a MultiStatus containing the accumulated result list. The message could be any reasonable default, e.g. the message from the first or last child. Client code that cares to dig deeper can use the existing MultiStatus API. Created attachment 58423 [details]
AndValidator and test
Patch with a minimal test case to implement the ideas above. I also added a few static convenience methods for wrapping the validators already configured on a BindSpec.
Created attachment 58424 [details]
AndValidator and test, updated copyright
The proposed new API for e4 should take care of this. We should be sure that we take into consideration all the issues Peter has come up with and Peter's suggestions will be useful when putting together the details of the new databinding API for e4. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the stalebug whiteboard tag. |