| Summary: | [Databinding] Datetime#setDate does not trigger re-validation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Mats-Ola Persson <deathpolli> | ||||
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> | ||||
| Status: | RESOLVED INVALID | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | tom.schindl | ||||
| Version: | 4.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Mats-Ola Persson
Created attachment 193461 [details]
The code
Setting a value programmatically does not trigger an event in SWT so Databinding can't know you've modified the value. You can call DatabindingContext#updateModel to manually trigger syncing which will run the validation code. ... small note to Text-Field and why it works there. SWT.Modify is an exception to the rule of not notifying when something is set programmtically in SWT Thanks! |