Summary: | StatusDialog shows nonsense "OK" error messages | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Mattias Bertilsson <mattias> | ||||||
Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> | ||||||
Status: | NEW --- | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | loskutov | ||||||
Version: | 4.16 | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=560667 | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Mattias Bertilsson
2020-07-23 13:55:21 EDT
Could you provide steps to reproduce, or some screen shots? Of if you have a patch in mind, please push to gerrit. It doesn't show in platform's own StatusDialogs as they all seem to create new StatusInfos (which do have a null message by default), rather than reusing Status.OK_STATUS. Anyway, the attached snippet shows the issue. In previous platform versions it has produced an empty dialog with OK / Cancel buttons. In 4.16 it produces a dialog with the text OK. Not sure about the patch. If compatibility matters, both StatusDialog and SelectionStatusDialog need to keep their original behavior, so either they should not share the same MessageLine implementation, or MessageLine needs some flag to signal which behavior for OK status should be used. Created attachment 283691 [details]
StatusDialog snippet
Created attachment 283882 [details]
AddRepository dialog with "OK" (instead of empty error message)
Looks like the AddRepository dialog (org.eclipse.equinox.internal.p2.ui.dialogs) uses Status.OK_STATUS to clear the StatusDialog error message and now gets "OK" instead.
Same thing with the DependencyPropertiesDialog of the PDE. |