Double input format validation: check if the entire string was parsed
- org.conqat.ide.commons.ui.databinding.validate.TextToDoubleValidator also accepted inputs where only a prefix was valid (followed by some garbage)
- Local version of TextToDoubleValidator checks if the entire input was parsed.
Issue-Ref: 3582 Issue-Url: https://af3-developer.fortiss.org/issues/3582
Signed-off-by: Simon Barner barner@fortiss.org
Merge request reports
Activity
assigned to @diewald
Seems to work in the sense that there is no more error message. Nevertheless, the behaviour (also before that commit) is intransparant for a user, since no error markers are shown: The values are simply lost on save. Could you easily add this in the course of this issue, or would it be more fortunate to do this separately?
assigned to @barner
assigned to @diewald
Error markers are supported by the properties framework using the following pattern:
added 7 commits
- c9db9aeb - Disable editing of IDs using setEditable() instead setEnabled()
- 57e1002f - Move databinding package from base.ui to kernel.ui
- bec9d22d - PropertySectionBase.TextToDoubleValidator -> databinding.NumberValidator
- b4f6a2c9 - Integrate createFormEntryAndReturnLabel() into createFormEntry()
- e2ae649d - createDecoratedText -> createDecoratedFormText()
- a1a41e44 - Add "Text createDecoratedText()" (CAVEAT: new semantics)
- b785e675 - Update and use kernel.databinding's input validators
Toggle commit listmentioned in merge request af3!129
mentioned in commit 54cab21b
Please register or sign in to reply