Bug 575992

Summary: Java Breakpoint Dialog does not support select and cut
Product: [Eclipse Project] Platform Reporter: Ed Willink <ed>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: kalyan_prasad, sarika.sinha, sravankumarl
Version: 4.16   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=574071
https://bugs.eclipse.org/bugs/show_bug.cgi?id=241188
Whiteboard:
Bug Depends on:    
Bug Blocks: 577995    
Attachments:
Description Flags
screenshot none

Description Ed Willink CLA 2021-09-15 03:06:22 EDT
Created attachment 287131 [details]
screenshot

Version: 2021-06 (4.20)
Build id: I20210611-1600

The attached dialog does not support select and cut to facilitate use in diverse situations, not least of which is bug reporting without opaque screenshots.

Please support a conventional select and copy.

(This is a specific example of a generic problem that select and copy is too
often not available within Eclipse but SWT seem reluctant to accept that there
is a generic problem. Each instance is pushed back as bad UI programming rather
than inadequate UI tooling.)
Comment 1 Sarika Sinha CLA 2021-09-21 06:17:10 EDT
@Ed,
You mean to say other dialogs allow to select and cut the text?
Comment 2 Ed Willink CLA 2021-09-21 07:44:30 EDT
I'm fairly sure some do. IIRC when I raised this as a general issue quite a fgew years o now, SWT batted it back as fully supported by SWT; just needs every Dialog programmer to get the magic configuration right.

Bottom line. Whenever text is displayed, it may be useful to select and cut/copy to re-use that text without the hazards of retyping. e.g.

a) in order to contribute searchable text to a bug report without obfuscating the text by embedding as a png

b) in order to search Bugzilla/forum/... for any other occurrences of the phenomenon

c) in order to search source code to facilitate debugging the dialog.

d) in order to search a namespace for a name matching a typo

...
Comment 3 Sarika Sinha CLA 2021-09-21 14:33:43 EDT
@Sravan,
Do you know about any setting to make the details selectable?
Comment 4 Kalyan Prasad Tatavarthi CLA 2021-09-22 04:35:20 EDT
(In reply to Sarika Sinha from comment #3)
> @Sravan,
> Do you know about any setting to make the details selectable?

Currently the Message is displayed as a swt Label in org.eclipse.jface.dialogs.IconAndMessageDialog

This needs to be converted to a swt Text which is read-only, so that it can be copied.

So moving this bug to Platform UI.
Comment 5 Kalyan Prasad Tatavarthi CLA 2021-09-22 04:38:37 EDT
(In reply to Kalyan Prasad Tatavarthi from comment #4)
> (In reply to Sarika Sinha from comment #3)
> > @Sravan,
> > Do you know about any setting to make the details selectable?
> 
> Currently the Message is displayed as a swt Label in
> org.eclipse.jface.dialogs.IconAndMessageDialog
> 
> This needs to be converted to a swt Text which is read-only, so that it can
> be copied.
> 
> So moving this bug to Platform UI.


Currently the Message is displayed as a swt Label widget in org.eclipse.jface.dialogs.IconAndMessageDialog

This needs to be changed to an swt Text(read-only) widget, so that it can be copied.

So moving this bug to Platform UI.
Comment 6 Ed Willink CLA 2021-09-22 11:50:34 EDT
(In reply to Ed Willink from comment #2)
> I'm fairly sure some do. 

e.g. When The Breakpoints View has an error I can select the following:

E:\Tools\Eclipse\4.10\plugins\org.eclipse.emf.ecore_2.16.0.v20181124-0637.jar is not on its project's build path

> IIRC when I raised this as a general issue quite a
> fgew years o now, SWT batted it back as fully supported by SWT

Bug 241188 13 years ago.