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 159648 - Go To Line dialog overwrites X clipboard
Summary: Go To Line dialog overwrites X clipboard
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Linux
: P4 blocker (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-05 01:17 UTC by peterbecker
Modified: 2016-07-07 07:30 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 peterbecker 2009-03-05 01:17:25 UTC
The dialog used to go to a line (Ctrl-G in default bindings) overwrites the X clipboard automatically, thus stopping me
from:

- select a line number in an error by double-clicking it
- open the dialog
- paste the copied number with a combination of Backspace + middle-click

I would expect the current number to be highlighted without changing the clipboard.
Comment 1 Vitezslav Stejskal 2009-03-11 18:58:12 UTC
I'm sorry, but I don't understand. The steps you mentioned work just fine in my dev build. What is wrong?
Comment 2 peterbecker 2009-03-12 05:59:17 UTC
I just tried with the nightly drop 200903080201 and the problem remains. I noticed that it is necessary to use the Goto
dialog once before, though. Here is a complete list of steps to reproduce:

1) open some file in the editor
2) use the Goto dialog to go to some line (i.e. enter some number in there and confirm)
3) highlight a number (or some other text) with the mouse --> the result is that the X-clipboard will contain the
selection and that it can be pasted via click of the middle button of the mouse (assuming default mouse mappings)
4) open the Goto dialog again

after that last step the Goto dialog will contain the previously used line number and have it highlighted, overriding
the X-clipboard, i.e. pasting via middle mouse button will paste the line number in the dialog, not the selection made
in step 3. The expected behavior would be that the dialog has the previous entry highlighted (as to be able to replace
it by typing), but the X-clipboard should remain unchanged since the selection was made programmatically and not by
mouse interaction.

Just a minor annoyance since I sometimes try to use the X-style copy and paste to paste line numbers into that dialog,
which seems impossible after the first time the dialog was used.
Comment 3 peterbecker 2009-03-12 06:02:50 UTC
BTW: an example of the expected behavior is the quick search field in Firefox: hitting Ctrl+K will take you there and
highlight all existing content, but will not change the X-clipboard.
Comment 4 Jiri Prox 2009-03-16 17:01:32 UTC
Reproducible, thanks for info
Comment 5 Vitezslav Stejskal 2010-03-05 06:17:21 UTC
I guess this is really only a minor annoyance as you've said. Thanks for the report though.
Comment 6 Martin Balin 2016-07-07 07:30:24 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss