Bug 574071 - TitleAreaDialog: Use Text again for message label
Summary: TitleAreaDialog: Use Text again for message label
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.20   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.21 M1   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 574260 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-08 07:02 EDT by Sebastian Ratz CLA
Modified: 2021-09-17 05:08 EDT (History)
5 users (show)

See Also:


Attachments
example dialog where selectable message is important (62.57 KB, image/png)
2021-06-08 08:04 EDT, Sebastian Ratz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Ratz CLA 2021-06-08 07:02:18 EDT
Bug 564535 has replaced the Text control used for error / info messages in TitleAreaDialog with a Label.

This has UX implications as it is now impossible to copy error messages from such dialogs.

The ability to copy such messages is often crucial.

I propose to revert the change and switch back to Text.


The situation where a curser can be placed in the Text when no message is displayed, can be solved by disabling the control in updateMessage(String) in case the message is empty.
Comment 1 Lars Vogel CLA 2021-06-08 07:04:26 EDT
+1
Comment 2 Andrey Loskutov CLA 2021-06-08 07:28:14 EDT
+-0. I see both points of view. 

I can't remember anyone tried to copy/paste the text from a dialog - in most cases users create screenshots anyway (even from text log entries).

I also haven't tried to right click the dialog title area because that is not common in any UI to provide a menu in such areas.

I believe it it would be always a Label, no one would ever notice that and report a bug to convert it to a selectable Text.
Comment 3 Sebastian Ratz CLA 2021-06-08 08:04:43 EDT
Created attachment 286544 [details]
example dialog where selectable message is important

(In reply to Andrey Loskutov from comment #2)
> I can't remember anyone tried to copy/paste the text from a dialog - in most
> cases users create screenshots anyway (even from text log entries).

We have many places in our IDE where users would like to copy text from such error messages (I have attached an example). The move from Text to Label made this quite painful.

> I believe it it would be always a Label, no one would ever notice that and
> report a bug to convert it to a selectable Text.

Agreed. Such UX interaction flows as the one in the example would probably not have been built if it would have been a Label to begin with.
Comment 4 Matthias Becker CLA 2021-06-08 08:16:29 EDT
yes. let's revert.
Comment 5 Andrey Loskutov CLA 2021-06-08 08:18:08 EDT
@Karsten : any comments?

The change was merhed in 4.18, and we had no complains till now, but probably not many users are on 4.18-4.20 anyway. So one bug per 9 months.

On the other side, we had the "Text" probably since ever, and one bug report too. So ome bug per 10 years.

With that, probably reverting the change would be more convenient.

Note also bug 564535 comment 6 proposal: should we use read-only StyledText with setCaret(null)?
Comment 6 Rolf Theunissen CLA 2021-06-17 07:04:31 EDT
*** Bug 574260 has been marked as a duplicate of this bug. ***
Comment 7 Ed Willink CLA 2021-06-17 08:03:48 EDT
(In reply to Andrey Loskutov from comment #5)
> @Karsten : any comments?
> 
> The change was merhed in 4.18, and we had no complains till now, but
> probably not many users are on 4.18-4.20 anyway. So one bug per 9 months.

I have raised multiple bugs about missing Copy from text areas but they are usually wontfixed.

In Bug Bug 574260 I observe that surely all text areas should be copy by default.
Comment 8 Eclipse Genie CLA 2021-06-18 06:49:14 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/182170
Comment 9 Sebastian Ratz CLA 2021-06-18 06:51:56 EDT
(In reply to Andrey Loskutov from comment #5)
> Note also bug 564535 comment 6 proposal: should we use read-only StyledText
> with setCaret(null)?

I tried that: Problem, then we lose the default context menu (with e.g. select-all + copy actions), see bug 73685. We also would have to re-implement Ctrl-A support (important if text is cut off).

I think having that context menu is important for accessibility.

Same goes for the Caret thing: If it is a Text, it probably should behave like a Text - including showing a caret.

I prepared a change:
- Revert back to old behavior
- Keep using Text
- Improve that if the message is completely blank, the Text control gets disabled
Comment 10 Matthias Becker CLA 2021-06-18 07:59:42 EDT
(In reply to Sebastian Ratz from comment #9)
> I prepared a change:
> - Revert back to old behavior
> - Keep using Text
> - Improve that if the message is completely blank, the Text control gets
> disabled

+1
Comment 12 Sebastian Ratz CLA 2021-07-05 05:59:35 EDT
Verified in I20210704-1800.
Comment 13 Ed Willink CLA 2021-09-17 05:08:09 EDT
(In reply to Andrey Loskutov from comment #2)
> I can't remember anyone tried to copy/paste the text from a dialog - in most
> cases users create screenshots anyway (even from text log entries).

See Bug 575964 and Bug 575992