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

Summary: selecting text copies it to the clipboard
Product: editor Reporter: carlo.salinari
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED WORKSFORME    
Severity: normal Keywords: USABILITY
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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.