Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341343

Summary: Paste enabled on disabled controls in launch configuration text fields
Product: [Eclipse Project] PDE Reporter: Alex Safro <alex.safro>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, eclipse.felipe, Silenio_Quarti, Stuart.Pond
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
paste command enabled in win xp on read only field
none
paste command disabled in win 7 on read only field none

Description Alex Safro CLA 2011-03-30 08:27:11 EDT
Build Identifier: I20100608-091

"paste" command in RMB menu is enabled on swt read only text field.  this is confusing the user, since pressing the "paste" command does nothing.
this problem is reproducible in windows xp, but not in windows 7.

Reproducible: Always

Steps to Reproduce:
1. in windows XP - open eclipse
2. Make sure some text is copied to clipboard
3. Open "Run configurations" dialog – in configuration tab
4. Select the "Location" field when it is read only and right click the mouse
5. in RMB menu the "paste" command is enabled (even though the field is read only)
6. pressing "paste" does nothing - as it should.

-> the "paste" command should not be enabled in this case.  (in windows 7 it is disabled)
screenshots attached.
Comment 1 Alex Safro CLA 2011-03-30 08:29:29 EDT
Created attachment 192178 [details]
paste command enabled in win xp on read only field
Comment 2 Alex Safro CLA 2011-03-30 08:30:04 EDT
Created attachment 192179 [details]
paste command disabled in win 7 on read only field
Comment 3 Curtis Windatt CLA 2011-03-30 10:12:06 EDT
The text field is not set as read only, instead its editable state is set to false.  On linux, paste is not enabled.

Silenio, is this expected behaviour for a text control?  If setEditable is set to false, should the paste action be enabled on windows?
Comment 4 Silenio Quarti CLA 2011-03-30 14:43:14 EDT
Looks like a bug in the OS (WinXp) itself. SWT.READ_ONLY and Text.setEditable(false) should be equivalent.

Felipe, please investigate.
Comment 5 Eclipse Genie CLA 2019-09-29 02:17:29 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.

If you have further information on the current state of the bug, please add it. 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.