Bug 505709 - Numerous dialogs do not support copy
Summary: Numerous dialogs do not support copy
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-11 09:03 EDT by Ed Willink CLA
Modified: 2020-06-08 06:32 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2016-10-11 09:03:04 EDT
When reporting bugs it is desirable to be able to copy message content, but numerous dialogs do not support text copy. For one specific example:

In the GIT history view when two branch labels are available on the same commit, select the commit and invoke Checkout to get a no-copy dialog.

This bug is so pervasive across numerous projects that it must be a platform bug.
Comment 1 Eclipse Genie CLA 2020-05-10 16:05:43 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Ed Willink CLA 2020-05-11 00:50:26 EDT
This is still a prevalent problem. I should not have to transcribe error messages to report bugs.
Comment 3 Ed Willink CLA 2020-05-11 03:07:57 EDT
For a specific example:

Trivially:

Window->Preferences->General

The "General" title is not copyable

The "Note: this preference may not take effect on all views" is not copyable

Seriously:

Run->Run Configurations...

Make some change (without saving) to current configuration

Change to some other configuration

The text of the resulting "Save Changes" dialog is not copyable.

More Challenging:

the title of the "Save" button is not copyable; perhaps shift-click-drag could select.
Comment 4 Ed Willink CLA 2020-05-11 03:11:33 EDT
(In reply to Ed Willink from comment #3)
> the title of the "Save" button is not copyable; perhaps shift-click-drag
> could select.

Correction:

Left-button-down
Non-trivial mouse movement
Left-button-up

should be a text select, not a button click
Comment 5 Thomas Wolf CLA 2020-05-11 06:15:36 EDT
At least on OS X this seems to be the standard platform behavior. Labels are not selectable, button text is not selectable.
Comment 6 Lars Vogel CLA 2020-05-11 15:54:50 EDT
Please reopen if the problem still persists.
Comment 7 Ed Willink CLA 2020-05-12 02:32:27 EDT
(In reply to Ed Willink from comment #3)
> Seriously:
> 
> Run->Run Configurations...
> 
> Make some change (without saving) to current configuration
> 
> Change to some other configuration
> 
> The text of the resulting "Save Changes" dialog is not copyable.

was reproduceable yesterday.
Comment 8 Thomas Wolf CLA 2020-05-12 03:02:57 EDT
Ed, please try this with some dialogs in standard non-SWT Windows applications, for instance Word. Are labels and button texts in dialogs in Word or in the File Explorer in general copyable? If not, it may be just the standard Windows platform behavior. In that case, this feature request is not really actionable since SWT strives to give the same behavior as the underlying platform (Windows, GTK, or Cocoa).

SWT labels and buttons have never been text-selectable AFAIK, and I suspect this is because the native Widgets just have that behavior.
Comment 9 Ed Willink CLA 2020-05-12 04:23:39 EDT
You have been distracted. My observation that down-move-up is select is just sensible but perhaps not standard. But is down-up-move-a-bit-down-up a double-click is a regular how big is a-bit sensitivity issue.

This bug is about sensibly copyable text. Ignore the pedantically copyable text issues if you like.

The body of the Save dialog is a necessary copy to report a bug, otherwise I have to report a PNG that doesn't respond to a search for similar.

IIRC I have reported that bug before and the specific offending dialog was fixed. Since the bug is prevalent, my assumption is that there is a bad SWT default that makes your average dialog wrong.
Comment 10 Paul Pazderski CLA 2020-05-12 04:35:38 EDT
(In reply to Thomas Wolf from comment #8)
> Ed, please try this with some dialogs in standard non-SWT Windows
> applications, for instance Word. Are labels and button texts in dialogs in
> Word or in the File Explorer in general copyable?

The Windows standard for system dialogs (MessageBox) is to allow copying the whole dialog content (title, text, buttons; no choice) by pressing Ctrl+C.
Since SWT builds on the system behavior it should be the same for a simple SWT MessageBox. I assume the jface MessageDialog is more self made and provide never this behavior.