Community
Participate
Working Groups
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.
Created attachment 192178 [details] paste command enabled in win xp on read only field
Created attachment 192179 [details] paste command disabled in win 7 on read only field
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?
Looks like a bug in the OS (WinXp) itself. SWT.READ_ONLY and Text.setEditable(false) should be equivalent. Felipe, please investigate.
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.