| Summary: | Support use of ValidationService at model element level | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Konstantin Komissarchik <konstantin> |
| Component: | Sapphire | Assignee: | Konstantin Komissarchik <konstantin> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | gregory.amerson, ling.hao, raj.alagumalai |
| Version: | unspecified | Keywords: | plan |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Konstantin Komissarchik
Should investigate this for 0.3.1 release. I have found a workaround (by adding a filter) for bug 353252 support dynamic list of child element types. Thus I don't have a need for this bug at the 0.3.1 target milestone. I am working on this one right now. Upon further investigation, I have decided to split off the task of displaying validation messages via a tooltip when hovering over a content outline node (now tracked by Bug 357714) from the ability to augment model element's validation at element level independent of properties. This bug tracks the latter portion. Note that the original narrative is obsolete as there hasn't been a way to actually override ModelElement's validate method in many releases. The modern approach is to use a validation service. As such, this bug now tracks enabling the use of ValidationService at model element level. Unfortunately, this requires the changes to services API available only in the 0.4 release. Moving the target release accordingly. This one has been done for a while. I just finished cleaning up the sample and the enhancements doc content. For a sample, see DuplicateContactValidationService. Please verify. Verified errors appears on tree node. Reopen bug because duplicate errors shown if more than one errors. contact.xml create 1 contact -> fill in all required texts create another contact -> name is the same as the first contact, leave other empty Now notice the errors are duplicated in reverse order. Ling, I am wondering whether this is related or not. Could you check if de-duplication was happening in 0.4? No duplication in 0.4 - should I open another bug for the regression? If its a regression, then its fine to use this bug to track it. Fixed the regression where duplicate validation messages are shown. verified on 0.5.0.201206052356 Thanks. Closing. |