Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341343 - Paste enabled on disabled controls in launch configuration text fields
Summary: Paste enabled on disabled controls in launch configuration text fields
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 08:27 EDT by Alex Safro CLA
Modified: 2019-09-29 02:17 EDT (History)
4 users (show)

See Also:


Attachments
paste command enabled in win xp on read only field (191.08 KB, image/png)
2011-03-30 08:29 EDT, Alex Safro CLA
no flags Details
paste command disabled in win 7 on read only field (236.47 KB, image/png)
2011-03-30 08:30 EDT, Alex Safro CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.