This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180895 - selecting text copies it to the clipboard
Summary: selecting text copies it to the clipboard
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@editor
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2010-02-18 05:11 UTC by carlo.salinari
Modified: 2010-02-18 08:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carlo.salinari 2010-02-18 05:11:30 UTC
Product Version: NetBeans IDE Dev (Build 100218-16efdfcb0445)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

steps to reproduce:

1. select some text by pressing the left button, dragging, then releasing the left button
2. click in an empty zone of the editor
3. right click, Paste
4. the empty zone is filled with the previously selected text


expected behavior:
at step (4), the unaltered content of the clipboard should be pasted. Nothing should happen it the clipboard is empty.


side effects:
this disables the paste-over-selection sequence which is very commonly used while programming. This makes this a "Highly visible usability problem" in my opinion.


possible causes:
selection events are being interpreted as copy events. I think this is a correct behavior under some unix gui, but definitely not under windows.
Comment 1 Vitezslav Stejskal 2010-02-18 07:38:49 UTC
Strange, this seems to work ok on my Mac. In other words selecting a text does *not* alter the clipboard. Could somebody please confirm that this really is broken on Windows (or Linux)? Thanks

Product Version: NetBeans IDE Dev (Build 100218-120015d23ef8)
Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101
System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)
Userdir: /work/netbeans/jet-main/nbbuild/testuserdir
Comment 2 carlo.salinari 2010-02-18 08:16:45 UTC
I found the culprit. The strange behavior was caused by the Babylon translator utility I had running in background (http://www.babylon.com/). For some reason it messes up NetBeans' selection behavior (the other apps behave correctly, so maybe it's Babylon that doesn't play well with Swing).

Not NetBeans' fault though, I think. Sorry for the inconvenience. Case closed.