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 52115 - Shift-Insert doesn't work in Find dialog
Summary: Shift-Insert doesn't work in Find dialog
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
: 56950 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-06 16:10 UTC by zikmund
Modified: 2007-11-05 13:44 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 zikmund 2004-12-06 16:10:22 UTC
Build 200412011810 (RC2), Windows specific.
JDK 1.5.0_01 & 1.4.2_06

1) Have clean userdir, newly created Java project,
edit Main.java
2) Mark e.g. 'String' and paste it to clipboard
(Ctrl-C or Ctrl-Insert)
3) Move cursor anywhere (e.g. to the document begin)
4) Ctrl-F (Find)
5) Paste the text using Shift-Insert (! not Ctrl-V)
6) Enter (to find)
7) ERROR:
No occurence found. There's "'' not found" text in
status bar

Notice: Using Ctrl-V in step 5 works fine.

BTW: It took me several hours! to find out why it
doesn't work. Sometimes I simply thought there is
really no any occurence of searched text in the
file although there was.
Comment 1 zikmund 2004-12-06 16:10:46 UTC
wrong summary, sorry.
Comment 2 Miloslav Metelka 2004-12-07 11:58:45 UTC
The Find dialog contains a regular JTextField for entering of the
searched string. Therefore the Shift-Insert does not work there
because it's specific to the editor window. This has never worked in
the past so it's not a regression but I think that this is a valuable
enhancement.
Comment 3 zikmund 2004-12-07 12:44:10 UTC
I have just tested it in 3.6 and it works fine there! - it's a regression.
BTW Shift-Insert works fine in all other edit boxes in 4.0 IDE (e.g.
Project wizard, Project properties, etc.)
Comment 4 Martin Roskanin 2004-12-07 12:49:18 UTC
Yes, I can reproduce it in NB4.0 RC2. The problem seems to be fixed in
maintrunk
Comment 5 Martin Roskanin 2004-12-07 13:07:23 UTC
No, I can reproduce it also in maintrunk
Comment 6 zikmund 2004-12-07 13:27:20 UTC
It works fine in 200410261800 build and fails in 200410271800 build.
Comment 7 Miloslav Metelka 2004-12-08 09:56:19 UTC
Karle, my apologies, I was wrong. The regression is likely caused by
the following integration into FindDialogSupport:

revision 1.51
date: 2004/10/27 09:43:52;  author: dbalek;  state: Exp;  lines: +2 -2
Issue #49696 fixed. Modified to prevent find operation from dropping
last characters.
Comment 8 Miloslav Metelka 2004-12-08 15:47:24 UTC
On today's editor meeting we have agreed that (although this is a
regression) this does not qualify as P2 issue. Downgrading to P3.
Comment 9 Martin Roskanin 2005-03-10 16:14:05 UTC
fixed in [maintrunk]

/cvs/editor/libsrc/org/netbeans/editor/ext/FindDialogSupport.java,v  <-- 
FindDialogSupport.java
new revision: 1.65; previous revision: 1.64
Comment 10 zikmund 2005-03-15 15:32:02 UTC
Verified, thanks for the fix.
Comment 11 Martin Roskanin 2005-03-25 09:03:27 UTC
*** Issue 56950 has been marked as a duplicate of this issue. ***
Comment 12 Roman Strobl 2005-07-27 12:45:19 UTC
Reopening, shift insert doesn't work now on Linux and Solaris in find dialog. It
works in other parts of the IDE.
Comment 13 Roman Strobl 2005-08-15 13:31:37 UTC
Target milestone is obsolete, please re-evaluate. Thanks.
Comment 14 Martin Roskanin 2005-11-01 16:34:58 UTC
Reproduced on Linux. Setting TM to future.
Comment 15 Miloslav Metelka 2007-01-24 21:47:37 UTC
Fixed.
Checking in FindDialogSupport.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/FindDialogSupport.java,v  <-- 
FindDialogSupport.java
new revision: 1.77; previous revision: 1.76
Comment 16 Vitezslav Stejskal 2007-11-05 13:30:53 UTC
Moving to the 'other' subcomponent.